On Sun Oct 25 17:25:56 2015, zengargo...@gmail.com wrote:
> This is perl6 version 2015.10-16-g2f4bfd8 built on MoarVM version
> 2015.10
> 
> https://gist.github.com/zengargoyle/5324c93684d6f5a376a3
> 
> for 1,1,2,2 -> $num, $value {
>    ... stuff ...
> loop {
>   earliest $channel {
>     more * {  ... $num and $value are both still 1 even on second for
> loop ... }
>     done * { last }
>     }
>   }
> }
> 
> On the second time through the surrounding for loop, inside the
> earliest block, the lexical $num and $value are still the values from
> the first time through the loop.
> 
> Github gist has a test case.
> 

The earliest syntax has been removed from Perl 6, and there are plenty of 
examples of the react/supply/whenever syntax that replaces it and closure 
semantics, so will reject this one.

/jnthn

Reply via email to