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. _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath