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
Haven't run the code and just spotted this while reviewing some ecosystem code.
The {++$}" on this line needs to be changed to $(++$)" or to " ~ ++$:
{++$}"
$(++$)"
" ~ ++$
p6-tinycc/lib/TinyCC/Eval.pm
Line 35 in a090e66
With original version, the state var is in its own block, which gets cloned when the outer block is entered, so the var ends up always being set to 1.
1
m: for ^3 { say "and {++$}"; } rakudo-moar e9351cbaa: OUTPUT: «and 1and 1and 1» m: for ^3 { say "and $(++$)"; } rakudo-moar e9351cbaa: OUTPUT: «and 1and 2and 3» m: for ^3 { say "and " ~ ++$; } rakudo-moar e9351cbaa: OUTPUT: «and 1and 2and 3»
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Haven't run the code and just spotted this while reviewing some ecosystem code.
The
{++$}"
on this line needs to be changed to$(++$)"
or to" ~ ++$
:p6-tinycc/lib/TinyCC/Eval.pm
Line 35 in a090e66
With original version, the state var is in its own block, which gets cloned when the outer block is entered, so the var ends up always being set to
1
.The text was updated successfully, but these errors were encountered: