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: Michael Koch
Subject: Re: Classpath build process and VM-specific issues
Date: Mon, 5 Apr 2004 20:17:19 +0200
User-agent: KMail/1.5.4

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;
}



Michael ?





reply via email to

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