This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: C++ and Java CNI: Check Java references


Tom Tromey <tromey@redhat.com> writes:

> Last night I was thinking that maybe if we turned every pointer in CNI
> into a reference then we could have gcjh add `operator *' to every
> class automatically.

I don't know what you mean by "every" pointer.  A Java "variable"
(parameter, local, field, or array element) cannot be a C++ reference,
because references cannot be null nor can you change a reference to
point to some other object, both of which are required for Java variables.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


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