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
for @a
is not creating containers for uninitialized elements
#4636
Comments
From @lizmat$ 6 'my Int @a; @a[5] = 42; $_ = 666 for @a' [23:11:32] <lizmat> .tell jnthn my Int @a; @a[5] = 42; $_ = 666 for @a fails because it gets an IterationBuffer as target, not an ArrayReificationTarget So I think it could be a code gen issue. And is my previous fix for: $ 6 'my Int @a; @a[5] = 42; .say for @a' basically wrong, as we don’t have typed lists (and those (Int) are appearing there because I took the .of of the given list, which gives the right type, but no descriptor. In other words, for the @a case, it should never wind up in the List iterator anyway? Liz |
From @smlsConfirmed on current Rakudo. Interestingly, it works if `for @a` is replaced with `for @a[*]`: ➜ my Int @a; @a[5] = 42; $_ = 100 for @a[*]; say @a; |
From @dogbert17On Sat, 07 May 2016 13:26:09 -0700, smls75@gmail.com wrote:
Seems to have been fixed with Rakudo commit 069b789af545dff30d450618fae82ccb82579346. |
The RT System itself - Status changed from 'new' to 'open' |
From @AlexDanielTests added in Raku/roast@d78f339 Closing On 2018-02-06 14:12:56, jan-olof.hendig@bredband.net wrote:
|
@AlexDaniel - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126312 (status was 'resolved')
Searchable as RT126312$
The text was updated successfully, but these errors were encountered: