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

[perl #110820] [BUG] Variable declaration inside statement_modifier for inside junction triggers bogus redeclaration error in Rakudo

From:
Carl Mäsak
Date:
February 15, 2012 06:37
Subject:
[perl #110820] [BUG] Variable declaration inside statement_modifier for inside junction triggers bogus redeclaration error in Rakudo
Message ID:
rt-3.6.HEAD-9184-1329316636-255.110820-82-0@perl.org
# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #110820]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=110820 >


<masak> nom: sub balanced { all((my $c += $_ eq "[" ?? 1 !! -1) < 0
for $^s.comb) && !$c }; .say when &balanced for (^(2 **
6))».fmt("%06b")».trans("01" => "[]")
<p6eval> nom bd5adb: OUTPUT«===SORRY!===␤Redeclaration of symbol $c␤at
/tmp/f7OZkWSnoP:1␤»
<masak> huh.
<masak> nom: all(my $c for ())
<p6eval> nom bd5adb: OUTPUT«===SORRY!===␤Redeclaration of symbol $c␤at
/tmp/XLWPyMzIwp:1␤»
<masak> that's the shortest I can make it.
* masak submits rakudobug



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