Re: [perl #116232] [BUG] FIRST and LAST aren't consistent in Rakudo

2013-01-09 Thread Brandon Allbery
On Wed, Jan 9, 2013 at 4:50 PM, jn...@jnthn.net via RT < perl6-bugs-follo...@perl.org> wrote: > While I can see the consistency you're after, I don't see a way to > (sanely) implement it. > Define "sanely". Save the block's context as a continuation, run the LEAVE block in it if we decide we're

[perl #116232] [BUG] FIRST and LAST aren't consistent in Rakudo

2013-01-09 Thread jn...@jnthn.net via RT
On Fri Dec 28 11:54:18 2012, masak wrote: > r: for ^0 { FIRST say 'first'; LAST say 'last'; LEAVE say > 'leave'; } # should this LAST be run? > rakudo 930369: OUTPUT«last␤» > Ayiko: S04 says "at loop termination time". even an empty loop > could be said to terminate. > r: for ^0 { my $a = 42; L

[perl #116232] [BUG] FIRST and LAST aren't consistent in Rakudo

2012-12-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #116232] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=116232 > r: for ^0 { FIRST say 'first'; LAST say 'last'; LEAVE say 'leave'; } # should th