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

.clone inside while loop which shifts off an array doesn't clone properly in Rakudo #660

Closed
p6rt opened this issue Jan 27, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jan 27, 2009

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

Searchable as RT62828$

@p6rt
Copy link
Author

p6rt commented Jan 27, 2009

From @masak

<masak> rakudo​: class A { has $.b; }; while shift [A.new( :b(0) )] ->
$a { say $a.b; $a.clone( :b($a.b + 1) ); say $a.b; last; }
<polyglotbot> OUTPUT[0␤1␤]
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Feb 11, 2009

From @jnthn

On Tue Jan 27 05​:27​:07 2009, masak wrote​:

<masak> rakudo​: class A { has $.b; }; while shift [A.new( :b(0) )] ->
$a { say $a.b; $a.clone( :b($a.b + 1) ); say $a.b; last; }
<polyglotbot> OUTPUT[0␤1␤]
* masak submits rakudobug

Fixed in git 59024e0 and added pretty much this exact code as a test
case to S12-attributes/clone.t.

Thanks!

Jonathan

@p6rt
Copy link
Author

p6rt commented Feb 11, 2009

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

@p6rt
Copy link
Author

p6rt commented Feb 11, 2009

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

@p6rt p6rt closed this as completed Feb 11, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant