classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classpath build process and VM-specific issues


From: Andrew Haley
Subject: Re: Classpath build process and VM-specific issues
Date: Mon, 5 Apr 2004 19:23:25 +0100

Michael Koch writes:
 > Am Montag, 5. April 2004 20:06 schrieb Andrew Haley:
 > > Etienne Gagnon writes:
 > >  > Andrew Haley wrote:
 > >  > > Well, not exactly: I'm suggesting that we wrap all those longs
 > >  > > in an opaque type.  But otherwise, yes.
 > >  >
 > >  > So, how do you do opaque types, in Java?
 > >
 > > You write the code using a class that wraps your native pointer: a
 > > class with a single member.
 > >
 > >  > And how do you guarantee portability to 128bit systems?
 > >
 > > You tell people "if you have a pointer that won't fit in a jlong,
 > > you'll need to change three lines of code".
 > 
 > So we will have code like this:
 > 
 > 
 > package gnu.java.lang:
 > 
 > public class NativePointer
 > {
 > public long address;
 > }

Yes.  But don't use it directly: use

class gtkPeerPointer extends NativePointer
{
}

Andrew.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]