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

for loop with optional second value should not care if the are not enough values #802

Closed
p6rt opened this issue Mar 19, 2009 · 5 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Mar 19, 2009

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

Searchable as RT63994$

@p6rt
Copy link
Author

p6rt commented Mar 19, 2009

From @szabgab

for (1,2,3) -> $a, $b? { say $a*$b }

throws exception on StopIteration as it runs out of values while the
$b was optional

@p6rt
Copy link
Author

p6rt commented Jul 28, 2009

From @kyleha

On Thu Mar 19 11​:58​:50 2009, szabgab@​gmail.com wrote​:

for (1,2,3) -> $a, $b? { say $a*$b }

This is tested in S04-statements/for.t

@p6rt
Copy link
Author

p6rt commented Jul 28, 2009

@kyleha - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 9, 2010

From @moritz

This feature now works.

@p6rt
Copy link
Author

p6rt commented Mar 9, 2010

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

@p6rt p6rt closed this as completed Mar 9, 2010
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