This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Where to find a CNI-Tutorial?


Andrew Haley wrote:

> That's what gnu.gcj.RawData is for.

Following my experience with SWT, I can only advise people not to do
this if at all possible.  Better to do everything that requires
handling pointers in C++ and use a layer that isolates them in opaque
structures.

But if you have a C++ data structure that contains pointers, how do you get at this data structue from a Java object in the first place?

It is possible to have a C++ table of C++ objects, and reference
the C++ objects using integer indexes, but that has some extra
overhead, including extra synchornization issues.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]