Michael Koch writes: > Am Montag, 5. April 2004 19:30 schrieb Andrew Haley: > > Michael Koch writes: > > > I think Andrew's solution might be viable. His solution is > > > already used in SWT. SWT runs with SUN JRE so it seems to be > > > portable enough for us. > > > > Well, not exactly: I'm suggesting that we wrap all those longs in an > > opaque type. But otherwise, yes. > > Can you give an example on how to do this ?
Sure. Instead of putting a native pointer in a long or in a byte[], you just declare a class with a single field that contains the pointer. Everyone who needs a pointer makes a suitably named subclass, so they'll know what they're pointing to. Andrew. _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath