From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [IPv6:2a0c:5a00:149::26]) by sourceware.org (Postfix) with ESMTPS id 4286E3856959 for ; Mon, 29 Aug 2022 22:12:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4286E3856959 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1oSmzK-00CLeP-8e for kawa@sourceware.org; Tue, 30 Aug 2022 00:12:10 +0200 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:To:Subject:MIME-Version:Date:Message-ID; bh=uVx6fQIleRf70/GvFewfe0tCPps93HYBlctNeBdfFL8=; b=XlrLKlnuEaydEQIbCNWGFPwVH6 xkOPMXod/XfoF5lnLSp05dnHAhm/gkj5hjyjTq29qe8mjshWCmhD9oWTdP0G5aJagz0Xr1cQ5WW8a fIqPhsnBMMBYf0/A90OWF33EVLzhVp/mNd/P8dd3Pu4tvSNb2qgRVugjJYJthrAfPnfpdEJvpvKvt KtDAvNAYimh0ggWsefM/L2MALcPG7aEw/Lp+3R0A+fC3aNNi2OzLzLS9ANiwuZKVZc0tRaO4bILV1 SzLpbH8cH85d2YqZ6GA6RoXuMXvM8Jd7x47pgPx2JVZNv5F7Q6XNl4ItN4FtGEf6urwC135AqNnrC hleCRc5A==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1oSmzJ-00005h-PO; Tue, 30 Aug 2022 00:12:09 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1oSmz1-0000Dt-In; Tue, 30 Aug 2022 00:11:51 +0200 Message-ID: <51486d80-0d3f-aa47-caca-9b23b2618174@bothner.com> Date: Mon, 29 Aug 2022 15:11:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: The Expression problem Content-Language: en-US To: daniel szmulewicz , 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=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,NICE_REPLY_A,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 8/29/22 14:35, daniel szmulewicz via Kawa wrote: > I was wondering what was Kawa's stance regarding the Expression problem, > ie. extending existing Java classes. > ABCL provides a mechanism to specialize on Java classes as documented in > section 4.5.2 of the user manual. Clojure provides defprotocol and defmulti > to extend existing types. I skimmed through the Kawa manual and am still > unsure. I am very curious to hear more from the experts. You can definitely extend existing Java classes and inetrfaces. See: https://www.gnu.org/software/kawa/Defining-new-classes.html True multiple inheritance is supported. -- --Per Bothner per@bothner.com http://per.bothner.com/