In a Perl module I'm writing (using XS, of course), I am, in several of
the method calls, using pass-by-reference notation, so that the value of
the variable passed (in this case, an object ref which contains a pointer
to a struct) can be updated when the API calls I'm making change the
pointer.
However, this uses the sv_setref_pv() method, which invokes any DESTROY
method that exists on the object. So, I end up with DESTROY being invoked
nearly every time I make a method call. Is there a sane way around this?
Or is DESTROY just not an equitable solution for this?
Derrik Pates | Sysadmin, Douglas School| _ #linuxOS on EFnet
[EMAIL PROTECTED] | District (dsdk12.net) | | | and now OPN too!
Student @ South Dakota School of Mines | __| |___ _ _ _ ___ _ _ ____
& Technology (www.sdsmt.edu) |/ _ / -_) ' \ '\/ _ \ ' \ (____)
UNIX: Because you want to USE your computer.|\___,\___|_||_||_\___/_||_|