Correction: rakudo does not hang, I didn't add a condition to the loop. On Thu 18 Jun 2015 at 22:37 perl6 via RT <perl6-bugs-follo...@perl.org> wrote:
> Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "Variable lives outside of loop's scope", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [perl #125434]. > > Please include the string: > > [perl #125434] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > perl6-bugs-follo...@perl.org > > ------------------------------------------------------------------------- > The following code: > > loop (my $i = 0;;) { } > loop (my $i = 0;;) { } > > Gives the following error: > Potential difficulties: > Redeclaration of symbol $i > at my-i.p6:2 > ------> loop (my $i⏏ = 0;;) { } > > Also, rakudo goes into a state where it hangs with 99% CPU usage. > > > $ perl6 --version > This is perl6 version 2015.05-200-g2c58ee1 built on MoarVM version > 2015.05-79-g458940f > >