C++ and Java CNI: Check Java references
Wed Apr 25 10:13:00 GMT 2001
>>>>> "Jason" == Jason Merrill <email@example.com> writes:
Jason> Just to be pedantic, it's impossible to eliminate the
Jason> abstraction penalty when the ABI is different for passing a
Jason> pointer v. a smart pointer. But if you can inline most of
Jason> the uses it shouldn't be a big deal.
I would expect that in most cases Java smart pointers wouldn't have to
be passed across function boundaries: unlike auto_ptr there's no need
to do anything when things are copied, or anything.
Mark Mitchell firstname.lastname@example.org
CodeSourcery, LLC http://www.codesourcery.com
More information about the Java