From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [IPv6:2a0c:5a00:149::25]) by sourceware.org (Postfix) with ESMTPS id 1707D3858D28 for ; Fri, 3 Nov 2023 18:29:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1707D3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1707D3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a0c:5a00:149::25 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699036193; cv=none; b=VEuKnqHsMgamdMJ8JKgQM8Qw31XekaYyo8z06aeOZF5gzidbXwP1pTuTVpqsmfh1lLVV828bo/pB1+zPwvpao9GYErMiBm5cbSQz/4WhbK4b4j/K1dxaxCCG8pWQ/AOp4mKlXgvgrSn+L2dHquAgSmQ5k8RYYPSvlv0SL9Bvi24= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699036193; c=relaxed/simple; bh=jOvqzgwsH9qIRF4+j55KolrfaxiF3luj0PTUT1+WhYA=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Y3WNkQv2nG+eHVhCXjbiupJhWbHLY8Q/60IpLYbvlWSqaLDSgIma4jA9iIhpvM9D7+3HsTYZxEah7hD0fBtnSJekp7mSZIh/A0eMstJZ3UxqZjoaxpScFOlWsL6zN43UuFYLWy5+JnG38qjASXGESGsjG5XfjYZwLFFEH3MKKuM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qyyvN-003mMe-Du; Fri, 03 Nov 2023 19:29:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=dZNniORmxRr1FxXPxT6jPMY1uNNa/3S+PqKH96EKNuk=; b=ZTAYKm+AZ1FyZ76BHVqTC5pulM 7efbuzA9Tf7mdlPZnXJwzE0XZ24M7U4mVI4PN4Zy/ZuBcdtxmeefhC/kBiKy9zJE8edHCiohcOuy+ ZglenjZa6MIT98A7Hze1OBvqvhGPKkm5au+9muv7T1A7UUsyco4nr60Ghvu84F4KC6039yRNcbpYv ZtWgH0dDBCPkUvR1BwIWENudCzHb61m0bCxyxzSVpnnGTlpLc7s76rbxNbKCacj4PZwD+NC0w14aV Wru3IZq9B9oev6qWzD0TeA9ZteSuf30FDXdGTGePg1LtDAAHjxHD/Th7nNejM/DyKYcAHYnhtA6gA zZe2cQaA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qyyvN-0002qf-1E; Fri, 03 Nov 2023 19:29:41 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qyyvE-003ygq-PO; Fri, 03 Nov 2023 19:29:33 +0100 Message-ID: <65a5c611-8d7a-4066-ad44-5f1a72283fd7@bothner.com> Date: Fri, 3 Nov 2023 11:29:22 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: duplicate version reference - was # Content-Language: en-US To: Damien Mattei Cc: kawa@sourceware.org References: From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/3/23 10:57, Damien Mattei wrote: > i understand. For my overloading operator idea, do you think is it > possible in Kawa (like in guile: (define-method (+ (x ) (y > )) (vector-append x y)) ),using the class and defining method > to overload some operators like + ,* ,etc ? and even do it for basic > type like vectors? allowing the use of + instead of vector-append? First, I think using + for vector-append is a bad idea. It's questionable for strings, but if + on vectors would be better to mean vector addition - i.e. mapping + element-by-element. (Of course my exposure to APL is influencing me here.) Second, Kawa has some half-assed support for "multi-methods": https://www.gnu.org/software/kawa/Generic-procedures.html That could be enhanced. -- --Per Bothner per@bothner.com http://per.bothner.com/