Skip to content
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

:delete silently fails on lazy Arrays #6409

Closed
p6rt opened this issue Jul 24, 2017 · 4 comments
Closed

:delete silently fails on lazy Arrays #6409

p6rt opened this issue Jul 24, 2017 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 24, 2017

Migrated from rt.perl.org#131790 (status was 'resolved')

Searchable as RT131790$

@p6rt
Copy link
Author

p6rt commented Jul 24, 2017

From @zoffixznet

m​: my @​a is default(42) = 1...*; @​a[1]​:delete; say @​a[1]​:exists; .say for @​a[^10]
rakudo-moar 2fb8c7​: OUTPUT​: «True␤1␤2␤3␤4␤5␤6␤7␤8␤9␤10␤»

Expected​: reify until `1`, delete it, and have `@​a[1]​:exists` give False, and `.say for @​a[^10]` give 42 for the second element.

@p6rt
Copy link
Author

p6rt commented Mar 14, 2018

From @dogbert17

On Mon, 24 Jul 2017 09​:09​:55 -0700, cpan@​zoffix.com wrote​:

m​: my @​a is default(42) = 1...*; @​a[1]​:delete; say @​a[1]​:exists; .say
for @​a[^10]
rakudo-moar 2fb8c7​: OUTPUT​: «True␤1␤2␤3␤4␤5␤6␤7␤8␤9␤10␤»

Expected​: reify until `1`, delete it, and have `@​a[1]​:exists` give
False, and `.say for @​a[^10]` give 42 for the second element.

This was fixed with commit rakudo/rakudo@0385b2a
Test was added with commit Raku/roast@9cc47b2

@p6rt
Copy link
Author

p6rt commented Mar 14, 2018

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 14, 2018

@dogbert17 - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant