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

Re: [perl #105910] eval return value is only sometimes copied

Thread Previous
From:
Dave Mitchell
Date:
March 29, 2017 15:22
Subject:
Re: [perl #105910] eval return value is only sometimes copied
Message ID:
20170329152219.GL3342@iabyn.com
On Sun, Dec 11, 2011 at 01:07:44PM -0800, Father Chrysostomos wrote:
> # New Ticket Created by  Father Chrysostomos 
> # Please include the string:  [perl #105910]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=105910 >
> 
> 
> #!perl -l
> print \$x;
> $a = sub { \@_ }->($x);
> print \eval ' shift @$a ';
> print \eval ' $x ';
> 
> This gives me:
> 
> SCALAR(0x826d50)
> SCALAR(0x826d50)
> SCALAR(0x826e60)

I think that's been fixed by my context stack reworking for 5.24.0.

-- 
Never work with children, animals, or actors.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About