This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
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/