Steven Augart wrote:
If we were to do this in the GNU Classpath Java code, then the only
solution I see is to use a preprocessor, and expand gpointer
to an int or long as appropriate, based upon the standard pointer
representation in that platform's usual ABI.
That wouldn't work for me. My (single) binary runs on both 32 and 64 bit
platforms. That's why I like using an object reference. BTW, I don't
actually store a native pointer in an object reference. I replace
RawData references with a native pointer type that the CLI support
(System.IntPtr). This is a primitive type, but it can also be boxed when
you assign it to an object reference.