Integrating Win32 changes
Per Bothner
per@bothner.com
Sat Apr 1 00:00:00 GMT 2000
Tom Tromey <tromey@cygnus.com> writes:
> No, he means just have "RawData handle", but store an int value in it
> (directly) in the cases where it makes sense (POSIX, Windows).
No, Jeff is right; I did propose having two fields, an int and
a RawData. I also consider what you're proposing: A single
RawData field, and then cast to/from int on Posix/Windows systems.
That would be more efficient, but it may be uglier and in theory
less portable. I.e. there may be architectures where you can't
safely convert an int to a (void*) and back again. (However, if
we have natFileDescriptorStdio, such platforms could use that.)
I guess I would have a slight preference for using a single field
rather than two.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/
More information about the Java
mailing list