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
>>>>> "Per" == Per Bothner <per@bothner.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.
Per> I don't know what you mean by "every" pointer. A Java "variable"
Per> (parameter, local, field, or array element) cannot be a C++
Per> reference, because references cannot be null nor can you change a
Per> reference to point to some other object, both of which are
Per> required for Java variables.
Thanks. I obviously forgot about this when I formulated the
references idea. Bummer.
Tom