develooper Front page | perl.perl6.compiler | Postings from March 2012

[perl #111766] [BUG] Lexical lookup doesn't work properly from an END block to a surrounding BEGIN block in Rakudo

From:
Carl Mäsak
Date:
March 14, 2012 12:39
Subject:
[perl #111766] [BUG] Lexical lookup doesn't work properly from an END block to a surrounding BEGIN block in Rakudo
Message ID:
rt-3.6.HEAD-4610-1331753962-865.111766-82-0@perl.org
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #111766]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=111766 >


<masak> nom: BEGIN { my $a = 42; END { say $a } }
<p6eval> rakudo fee891: OUTPUT«Any()␤»
* masak submits rakudobug
<masak> nom: my $a = 42; END { say $a }
<p6eval> rakudo fee891: OUTPUT«42␤»
<masak> both should work, IMNSHO.



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