develooper Front page | perl.perl5.porters | Postings from March 2014

Re: I've tweaked SAVEt_CLEARSV,

Thread Previous
Dave Mitchell
March 1, 2014 10:26
Re: I've tweaked SAVEt_CLEARSV,
Message ID:
On Fri, Feb 28, 2014 at 10:18:59PM -0500, bulk88 wrote:
> In commit "SAVEt_CLEARSV: simplify SvREADONLY_off() condition"
> you mentioned "SAVEt_CLEARSV should always be called with SvPADMY()
> true, so don't test for it, but assert it instead.", does that means
> SAVECLEARSV has no use outside of core? It can't be used on a perl
> stack SV or AV slice now?

It never could. I suspect you're thinking of SAVEt_SV, which is the
internal implementation of 'local $a[1]' etc, and which is unaffected.
SAVEt_CLEARSV is specifically for acting upon lexical vars when they go
out of scope.

"Foul and greedy Dwarf - you have eaten the last candle."
    -- "Hordes of the Things", BBC Radio.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About