This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Language extensions ?
- From: Andrew Haley <aph at redhat dot com>
- To: "Robin Garner" <robin dot garner at iname dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 2 Apr 2003 10:30:51 +0100 (BST)
- Subject: Re: Language extensions ?
- References: <20030402041950.76125.qmail@iname.com>
Robin Garner writes:
>
> I could use a RawData field as long as I could convert between it and
> an int/long without the overhead of a procedure call, and do
> comparisons. Arithmetic would then be a nice-to-have.
>
> The argument that "java doesn't need to do it because that's what CNI
> is for" is missing the point of what I'm suggesting.
We're not missing the point. We're disagreeing.
> I'm saying that by adding a few features to Java there should be
> less need to drop out to C/C++, and this would be a Good Thing.
You haven't said why. IMO it would be a Bad Thing.
Eclipse SWT, for example, does everything this way. But there are
some nasty consequences: for example, there is no sizeof in Java, and
this casues some fairly evil problems. And bugs are very hard to
track down.
Andrew.