# New Ticket Created by Pepe Schwarz # Please include the string: [perl #128661] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=128661 >
JVM and MoarVM behave differently with regards to state variables, as in the following example: 10:14 < psch> r: sub f { loop { say $++; last } }; f;f;f;f; 10:14 < camelia> rakudo-moar 8aaffa: OUTPUT«0000» 10:14 < camelia> ..rakudo-jvm cd19db: OUTPUT«0123» This difference is the underlying issue in ticket #126528. http://irclog.perlgeek.de/perl6-dev/2016-07-18#i_12859256 and onward has some discussion regarding behavior, although no decision which of those two is or should be considered correct.