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
Rakudo doesn't DTRT with 'state' variables and cloned blocks #607
Comments
From @masakRakudo r35404 doesn't work according to spec in the area of 'state' $ perl6 -e 'my $i = 0; my $func = { state $x = $i++; say $x }; my ($a, According to S04, this should be equivalent to $func = { state $x will start { $x = $i++ }; say $i }; and thus (in my understanding) produce 0 |
From @masakCarl (>):
Arrgh, that should be 'say $x', of course.
|
@masak - Status changed from 'new' to 'open' |
From @jnthnOn Sun Jan 11 04:59:51 2009, masak wrote:
Actually expected output is: 0 Or at least I talked at least two other people into #perl6 into agreeing Added this with 0/1/0 as expected output to the spectests, and it's passing. Thanks, Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#62184 (status was 'resolved')
Searchable as RT62184$
The text was updated successfully, but these errors were encountered: