public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: daniel szmulewicz <daniel.szmulewicz@gmail.com>, kawa@sourceware.org
Subject: Re: The Expression problem
Date: Mon, 29 Aug 2022 15:11:43 -0700	[thread overview]
Message-ID: <51486d80-0d3f-aa47-caca-9b23b2618174@bothner.com> (raw)
In-Reply-To: <CAABPU6_r4hZq+rN_DdEvwdJ-43ZTsGRVTYqWqWkhvziuf5yQEw@mail.gmail.com>

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/

  reply	other threads:[~2022-08-29 22:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-29 21:35 daniel szmulewicz
2022-08-29 22:11 ` Per Bothner [this message]
2022-08-30 18:24   ` daniel szmulewicz
2022-08-30 18:57     ` Per Bothner
2022-08-30 18:57       ` Per Bothner
2022-08-31  7:13       ` Helmut Eller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51486d80-0d3f-aa47-caca-9b23b2618174@bothner.com \
    --to=per@bothner.com \
    --cc=daniel.szmulewicz@gmail.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).