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?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: XS-ive Mortality. (or when to use sv_2mortal())