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 " ~ $++:
{$++}"
$($++)"
" ~ $++
spitsh/lib/Spit/Sh/Composer.pm6
Line 526 in 9bfc183
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.
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:
Same issue on this line:
spitsh/lib/Spit/Parser/Actions.pm6
Line 1151 in 9bfc183
Sorry, something went wrong.
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" ~ $++
:spitsh/lib/Spit/Sh/Composer.pm6
Line 526 in 9bfc183
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: