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
Binary assignment Z+= fails if it's the last thing in for loop #6642
Comments
From @briandfoyI previously asked about this unexpected Z behavior on Stackoverflow I expected this to change several hash keys at once. It changes no keys: my $hash = %( for ^1 { $hash<wallet gave> Z+= <-1 1> } dd $hash; I get: Hash If I change that to add another statement it works: for ^1 { $hash<wallet gave> Z+= <-1 1>; True } It also works if I take out the binary assignment: for ^1 { $hash<wallet gave> = $hash<wallet gave> Z+ <-1 1> } |
From @timoCurious sidenote: when you use [Z+]= it will complain about "useless use of [Z+]= in sink |
The RT System itself - Status changed from 'new' to 'open' |
From @AlexDanielFWIW it never worked: https://gist.github.com/Whateverable/d9dbebb0e985a3964845df2c8652cbdf On 2017-11-27 17:36:22, comdog wrote:
|
From @zoffixznetOn Mon, 04 Dec 2017 12:31:28 -0800, alex.jakimenko@gmail.com wrote:
Thank you for the report. This is now fixed. Fix: rakudo/rakudo@8a10fc17a319029 |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#132511 (status was 'resolved')
Searchable as RT132511$
The text was updated successfully, but these errors were encountered: