Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior of state variables across backends #5463

Open
p6rt opened this issue Jul 18, 2016 · 1 comment
Open

Inconsistent behavior of state variables across backends #5463

p6rt opened this issue Jul 18, 2016 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 18, 2016

Migrated from rt.perl.org#128661 (status was 'new')

Searchable as RT128661$

@p6rt
Copy link
Author

p6rt commented Jul 18, 2016

From @peschwa

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«0␤0␤0␤0␤»
10​:14 < camelia> ..rakudo-jvm cd19db​: OUTPUT«0␤1␤2␤3␤»

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant