C++ and Java CNI: Check Java references

Tom Tromey tromey@redhat.com
Fri Apr 27 10:02:00 GMT 2001


>>>>> "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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /