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

- FIRST phaser not firing in while loop #4716

Closed
p6rt opened this issue Nov 2, 2015 · 4 comments
Closed

- FIRST phaser not firing in while loop #4716

p6rt opened this issue Nov 2, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 2, 2015

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

Searchable as RT126535$

@p6rt
Copy link
Author

p6rt commented Nov 2, 2015

From zengargoyle@gmail.com

No gist for this, simple​:

17​:29 < zengargoyle> m​: my $x = True; while $x { FIRST { say "first"
}; LAST { say "last" }; $x = False; }
17​:29 <+camelia> rakudo-moar 1051fc​: OUTPUT«last␤»

FIRST phaser does not fire in a while loop.

17​:29 < zengargoyle> m​: my $x = True; while $x { once { say "first" };
LAST { say "last" }; $x = False; }
17​:29 <+camelia> rakudo-moar 1051fc​: OUTPUT«first␤last␤»

once does work though.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

From @jnthn

On Sun Nov 01 17​:37​:23 2015, zengargoyle@​gmail.com wrote​:

No gist for this, simple​:

17​:29 < zengargoyle> m​: my $x = True; while $x { FIRST { say "first"
}; LAST { say "last" }; $x = False; }
17​:29 <+camelia> rakudo-moar 1051fc​: OUTPUT«last␤»

FIRST phaser does not fire in a while loop.

This is a dupe of an issue I fixed a while back, and there is already test coverage in S04-phasers/first.t.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

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

@p6rt
Copy link
Author

p6rt commented Dec 12, 2015

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

@p6rt p6rt closed this as completed Dec 12, 2015
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant