public inbox for
 help / color / mirror / Atom feed
From: Jeff Sturm <>
To: Maury Markowitz <>
Subject: Re: Objective-C vs. gcj (was: Re: Newbie questions)
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Maury Markowitz wrote:
> > Objective-C has a neat feature which makes it extremely simple to write
> > delegate classes.  The runtime attempts to dispatch a method invocation
> > [snip]
> > Similar tricks could be performed with Java reflection, I'd guess.
>   That's interesting.  Ahhh, do you mean that we could use the
> reflection API in the runtime to see if the method is there and then
> re-dispatch?  Hmmm, that might be a "better" (as in leveraging
> existing functionality) solution that Obj-C's in fact.

Yes, Java reflection can do that.  In fact, if we fully supported JNI,
you could implement a proxy in Obj-C that would forward messages to the
libgcj runtime.  Essentially you could wrap a Java class in an Obj-C
class that way.

Without JNI, it would be harder... the libgcj runtime is mostly C++ and
Java, and you'd have to find some way to interact with the GC.

Jeff Sturm

  reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-01  0:00 Maury Markowitz
2000-04-01  0:00 ` Jeff Sturm [this message]
2000-04-01  0:00 ` Jon Olson
2000-04-01  0:00 Newbie questions Maury Markowitz
2000-04-01  0:00 ` Tom Tromey
2000-04-01  0:00   ` Objective-C vs. gcj (was: Re: Newbie questions) Jeff Sturm
2000-04-01  0:00     ` Kresten Krab Thorup
2000-04-01  0:00     ` Per Bothner

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:

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

  git send-email \ \ \ \ \

* 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).