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 is overly eager, and reifys when it shouldn't #3242

Closed
p6rt opened this issue Sep 28, 2013 · 5 comments
Closed

For is overly eager, and reifys when it shouldn't #3242

p6rt opened this issue Sep 28, 2013 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Sep 28, 2013

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

Searchable as RT120035$

@p6rt
Copy link
Author

p6rt commented Sep 28, 2013

From @BenGoldberg1

If I run the following code​:
for gather { .say, .take for 1..5 } { last }
The output is​:
1␤2␤3␤4␤5␤
When it ought to be​:
1␤

@p6rt
Copy link
Author

p6rt commented Apr 13, 2014

From @Mouq

On Fri Sep 27 19​:55​:03 2013, ben-goldberg@​hotmail.com wrote​:

If I run the following code​:
for gather { .say, .take for 1..5 } { last }
The output is​:
1␤2␤3␤4␤5␤
When it ought to be​:
1␤

Looks good now​:

$ perl6 -e'for gather { .say, .take for 1..5 } { last }'
1

Marking as testneeded

@p6rt
Copy link
Author

p6rt commented Apr 13, 2014

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

@p6rt
Copy link
Author

p6rt commented Jun 2, 2014

From @jnthn

On Sat Apr 12 19​:56​:51 2014, Mouq wrote​:

On Fri Sep 27 19​:55​:03 2013, ben-goldberg@​hotmail.com wrote​:

If I run the following code​:
for gather { .say, .take for 1..5 } { last }
The output is​:
1␤2␤3␤4␤5␤
When it ought to be​:
1␤

Looks good now​:

$ perl6 -e'for gather { .say, .take for 1..5 } { last }'
1

Marking as testneeded

Tested in 450bd71.

@p6rt
Copy link
Author

p6rt commented Jun 2, 2014

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

@p6rt p6rt closed this as completed Jun 2, 2014
@p6rt p6rt added the testneeded label Jan 5, 2020
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