develooper Front page | perl.perl5.porters | Postings from August 2013

Re: [perl #119049] referencing some variables hides others fromPadWalker starting 5.17.2

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
August 2, 2013 18:10
Subject:
Re: [perl #119049] referencing some variables hides others fromPadWalker starting 5.17.2
Message ID:
20130802122126.GA10124@cancer.codesimply.com
* Steffen Mueller via RT <perlbug-followup@perl.org> [2013-08-02T01:24:42]
> > Why shouldn't this program be able to print 2?
> 
> Because closing over variables (which it has always been, I believe) 
> happens at run-time apart from the eval "" exception.

You'll find that the program printed 2 until 5.17.2 or so, so in most cases we
were keeping all the slots available.  I think it's now established that we're
better off keeping it the way it is now, but it has not always been this way.

-- 
rjbs

Thread Previous | Thread Next


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