Ref counting
Mark Mitchell
mark at codesourcery.com
Fri Apr 12 20:42:38 UTC 2002
> Is there a way to increase ref count of object to reference it outside
> of function scope or am trying to do something deprecated ? Should I be
> passing in a reference argument and initialize Array/Field in the
> function ?
I suggest allocating the new Array/Field with "new", rather than as a
local variable, and then returning it the pointer.
Jeffrey, do you have alternative ideas?
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the pooma-dev
mailing list