We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#67040 (status was 'resolved')
Searchable as RT67040$
The text was updated successfully, but these errors were encountered:
20:11 <@moritz_> rakudo: sub a { state $x //= 3; $x++; say $x }; a(); a() 20:12 < p6eval> rakudo 6c43f9: OUTPUT«44»
Although that's better written as 'state $x = 3', it should IMHO give the result 4\n5\n, not 4\n4\n
Cheers, Moritz
Sorry, something went wrong.
On Sun Jun 28 12:05:28 2009, moritz wrote:
20:11 <@moritz_> rakudo: sub a { state $x //= 3; $x++; say $x }; a(); a() 20:12 < p6eval> rakudo 6c43f9: OUTPUT«44» Although that's better written as 'state $x = 3', it should IMHO give the result 4\n5\n, not 4\n4\n
Aye, agree. And after git 95a2c4f it now does.
sub a { state $x //= 3; $x++; say $x }; a(); a() 4 5
Plus spectest for //= and state interaction unfudged.
Thanks,
Jonathan
The RT System itself - Status changed from 'new' to 'open'
@jnthn - Status changed from 'open' to 'resolved'
No branches or pull requests
Migrated from rt.perl.org#67040 (status was 'resolved')
Searchable as RT67040$
The text was updated successfully, but these errors were encountered: