C++ and Java CNI: Check Java references

Mark Mitchell mark@codesourcery.com
Wed Apr 25 10:15:00 GMT 2001


>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

 Tom> * Is there a performance impact for using references instead
 Tom> of pointers as arguments to methods? It's hard to believe
 Tom> there would be one, but I don't know for certain.
No. In fact, some things should theoretically go better: the compiler
knows that references are never NULL.
 Tom> I think this approach does handle the nonvirtual method call
 Tom> problem, because operator-> must still be used to compute
 Tom> `this'.
I didn't understand this problem, I guess.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com


More information about the Java mailing list

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