in reply to Re^3: C++ object & PERL garbage collection
in thread C++ object & PERL garbage collection
my $dsgn = subA(); $dsgn->method(); sub subA { my $obj = new (c++_object); return $obj; }
my $obj = new (c++_object) subA($obj) sub subA { my ($object) = @_; $object->method(); }
and the C++ folks say that it is PERL deleting the object because it is no longer in scope.CALLEE can NOT return OBJECT CALLER can ALWAYS pass OBJECT
|
|---|