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 18:55:00 +0100

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.




reply via email to

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