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

[perl #109322] [BUG] Lexical weirdness from blocks inside re-entrant subs in Rakudo

Thread Previous
From:
Carl Mäsak via RT
Date:
January 29, 2012 12:27
Subject:
[perl #109322] [BUG] Lexical weirdness from blocks inside re-entrant subs in Rakudo
Message ID:
rt-3.6.HEAD-14510-1327868824-735.109322-14-0@perl.org
<Radvendii> nom: sub foo ($a, $f) { if $f { foo('z', 0) }; {$_=$a; say 
$a; say $_} }; foo('x', 1) #does it work explicitly?
<p6eval> nom 9719f7: OUTPUT«z␤z␤z␤z␤»
<Radvendii> ooh. that's even worse...
<masak> Radvendii: but it has exactly the same cause.
<Radvendii> masak: yup... i just realized that
<Radvendii> i thought it maybe had to do with the "given" statement 
itself
<masak> me too.
<masak> no, it's just blocks inside reentrant blocks.
* masak updates ticket


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