in reply to Re: XS-ive Mortality. (or when to use sv_2mortal())
in thread XS-ive Mortality. (or when to use sv_2mortal())
Yeah. Saw that, but it doesn't help much. The vagueness of
Similarly, results returned by XSUBs (which are pushed on the stack) are often made mortal.
leaves me wondering if I should mortalise every SV I return from XS code? What about from Inline C code? How about the RV that you bless and set into the object that you return a reference to when using Inline C OO? Or the reference itself?
|
|---|