in reply to Re: C++ object & PERL garbage collection
in thread C++ object & PERL garbage collection
and perl grabs the package withsub method { my @args = @_; $args[0] = tied(%{$args[0]}); my $result = C++CODE::method(@args); return $result; }
use lib (<path>) use (C++ package)
my $dsgn = new (c++_object) $dsgn->(method)
MAIN my C++object C++object = pckA::routine pckB::routine(C++object) PACKAGEA our C++object routine new C++object return C++object PACKAGEB routine my $C++object = @_ $C++object->method()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: C++ object & PERL garbage collection
by syphilis (Archbishop) on Sep 23, 2006 at 02:08 UTC | |
by Anonymous Monk on Sep 23, 2006 at 02:28 UTC | |
by diotalevi (Canon) on Sep 23, 2006 at 03:05 UTC |