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

non-modifier form of 'if' within 'for' loop fails, while the modifier form works #1786

Closed
p6rt opened this issue May 25, 2010 · 6 comments
Closed

Comments

@p6rt
Copy link

p6rt commented May 25, 2010

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

Searchable as RT75342$

@p6rt
Copy link
Author

p6rt commented May 25, 2010

From pk-rakudo@kailasa.net

perl6 -v
This compiler is built with the Parrot Compiler Toolkit, parrot revision 46946.

# this works as expected

perl6 -e 'my @​a = 0, 1, 2; for @​a {$_++ if $_}; say @​a.perl'
[0, 2, 3]

# this fails

perl6 -e 'my @​a = 0, 1, 2; for @​a { if $_ { $_++ } }; say @​a.perl'
[0, 1, 2]

Thanks,
Prakash Kailasa

@p6rt
Copy link
Author

p6rt commented Feb 23, 2011

From @moritz

Works now in Rakudo, just needs a test.

@p6rt
Copy link
Author

p6rt commented Feb 23, 2011

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

@p6rt
Copy link
Author

p6rt commented Feb 23, 2011

From @zhuomingliang

test added, see Raku/roast@d8455c956e

@p6rt
Copy link
Author

p6rt commented Mar 12, 2011

From @kyleha

This has a test in S02-builtin_data_types/array.t, which passes.

@p6rt
Copy link
Author

p6rt commented Mar 12, 2011

@kyleha - 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