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
while (...splice...) runs forever #3057
Comments
From @rjbsThis program never terminates: use v6; my @a = << >>; while (my @c = splice @a, 0, 3) { This is perl6 version 2013.01-136-g0d261a3 built on parrot 4.10.0 revision -- |
From @pmichaudOn Thu, Feb 21, 2013 at 09:07:44AM -0800, Ricardo SIGNES wrote:
After each splice, @c ends up being @(Any, Any, Any). I'm not The following should work: my @a = (); while ( @a ) { Hope this helps, Pm |
The RT System itself - Status changed from 'new' to 'open' |
From @rjbsThanks, Patrick. I used a similar workaround. The notion that the behavior we see in Rakudo (but not in N~) came from Larry. I think the last http://perlcabal.org/syn/S32/Containers.html#splice And: 20:11 <TimToady> and well motivated, insofar as it makes it much easier to Thanks! |
From @MouqBehavior change: $ perl6 -e'my @a = << >>; while (my @c = splice @a, 0, 3) { say "one more"; }' Looks good to me; marking as testneeded On Mon Feb 25 17:12:10 2013, rjbs wrote:
|
From @MouqTest added in Roast commit: commit e75f03bf2d9b9b7074fd0077fb5cf4beaeef3e89 Add test for RT #116897 Closing as resolved :) On Tue Jan 27 14:17:08 2015, Mouq wrote:
|
@Mouq - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#116897 (status was 'resolved')
Searchable as RT116897$
The text was updated successfully, but these errors were encountered: