develooper Front page | perl.perl5.porters | Postings from November 2009

[perl #67838] [PATCH] lvalue substr keeping lexical alive

Thread Previous | Thread Next
Eric Brine via RT
November 7, 2009 11:07
[perl #67838] [PATCH] lvalue substr keeping lexical alive
Message ID:
On Fri Nov 06 16:25:33 2009, wrote:
> On Thu Nov 05 12:56:29 2009, wrote:
> > It's not only lvalue vec(), it's also lvalue pos(), substr() and maybe 
> > keys().
> Confirmed for all four. A patch to add tests is attached.
> A patch to fix the problem will follow shortly.

Two patches are attached.

The first adds tests. It's an updated version of my earlier patch. It
should be used instead of the earlier patch.

The second plugs the leaks by not using TARG when a lvalue is required.

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