Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In the XS function I bless the reference into "Notes::Session", set flags and return it on the stack. I would like to put a global session count into that object's IVX slot and could then have another function to access it (say Notes::Session::session_count or $ns->session_count()). After having blessed the SV into a package (making it an "object") however, it seems I can't use any of the sv_set*v() functions to change those values as the object gets DESTROYed().$ns = Notes::Session->new();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XS Extending Question
by diotalevi (Canon) on Feb 17, 2003 at 23:49 UTC |