[perl #131548] [BUG] andthen weirdness with lexicals

2018-01-26 Thread Zoffix Znet via RT
On Fri, 09 Jun 2017 12:48:55 -0700, c...@cpan.org wrote: > Example code: > > $ cat bug.p6 > for ^7 { > my $x = 1; > 1 andthen print "$x " > andthen $x = 2 > andthen $x = 3 > andthen $x = 4; > } > > Output: > > $ perl6 bug.p6 > 1 4 3 3 3 3 3 > > We apparently create a c

[perl #131548] [BUG] andthen weirdness with lexicals

2018-01-26 Thread Zoffix Znet via RT
On Fri, 09 Jun 2017 12:48:55 -0700, c...@cpan.org wrote: > Example code: > > $ cat bug.p6 > for ^7 { > my $x = 1; > 1 andthen print "$x " > andthen $x = 2 > andthen $x = 3 > andthen $x = 4; > } > > Output: > > $ perl6 bug.p6 > 1 4 3 3 3 3 3 > > We apparently create a c

[perl #131548] [BUG] andthen weirdness with lexicals

2017-06-09 Thread via RT
# New Ticket Created by cygx # Please include the string: [perl #131548] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131548 > Example code: $ cat bug.p6 for ^7 { my $x = 1; 1 andthen print "$x "