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

.grep on an array and assignment to that same array don't mix in Rakudo #2443

Closed
p6rt opened this issue Jul 3, 2011 · 3 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Jul 3, 2011

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

Searchable as RT93972$

@p6rt
Copy link
Author

p6rt commented Jul 3, 2011

From @masak

<tadzik> rakudo​: my $a = 1, 2, 3; $a = $a.grep({1}); say $a.perl
<p6eval> rakudo 72d158​: OUTPUT«Cannot resume dead coroutine. [...]
* masak submits rakudobug
<masak> tadzik++
<masak> rakudo​: my $a = $a.grep(True); say $a.perl
<p6eval> rakudo 72d158​: OUTPUT«Cannot resume dead coroutine. [...]
<thou> weird that this hasn't shown up before [20​:54]
<masak> assignments with the same container in both the lhs and rhs
being problematic has shown up before.
<masak> but the case I'm thinking of was about hashes.
<masak> ah; that's http://rt.perl.org/rt3//Public/Bug/Display.html?id=77586

@p6rt
Copy link
Author

p6rt commented Sep 30, 2011

From @moritz

Works now, with tests in S03-operators/assign.t

@p6rt
Copy link
Author

p6rt commented Sep 30, 2011

@moritz - Status changed from 'new' 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