C++ and Java CNI: Check Java references

Per Bothner per@bothner.com
Wed Apr 25 10:38:00 GMT 2001


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/



More information about the Gcc-patches mailing list