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

“next” inside whenever no longer works (react { whenever foo() { next if $_ > 3 } }) #6019

Closed
p6rt opened this issue Jan 20, 2017 · 5 comments
Labels
regression Issue did not exist previously testneeded

Comments

@p6rt
Copy link

p6rt commented Jan 20, 2017

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

Searchable as RT130601$

@p6rt
Copy link
Author

p6rt commented Jan 20, 2017

From @AlexDaniel

Code​:
sub foo { supply { emit($_) for 1..10; }; }; react { whenever foo() { next if $_ > 3; say $_; }; };

Result (2015.12)​:
1
2
3

Result (2016.08.1)​:
1
2
3
Access denied to keep/break this Promise; already vowed
  in any at /tmp/whateverable/rakudo-moar/a07a2e173cfc24f1bec549d2d5b79ef978e46b58/share/perl6/runtime/CORE.setting.moarvm line 1

Result (HEAD)​:
1
2
3
===SORRY!===
next without loop construct

It was supposed to work, I guess.

@p6rt
Copy link
Author

p6rt commented Jan 20, 2017

From @timo

Implemented `next` in f97d5c2aafc8427bfce1279438712e5f34498a4d, and added a pull request (#​998) for `redo` and `last`.

Seems like `next` used to work purely by accident, but now it's properly supported.

this is now testneeded.

@p6rt
Copy link
Author

p6rt commented Jan 20, 2017

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

@p6rt
Copy link
Author

p6rt commented Feb 28, 2017

From @zoffixznet

Tests in Raku/roast@af2d786d40

@p6rt
Copy link
Author

p6rt commented Feb 28, 2017

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

@p6rt p6rt closed this as completed Feb 28, 2017
@p6rt p6rt added regression Issue did not exist previously testneeded labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Issue did not exist previously testneeded
Projects
None yet
Development

No branches or pull requests

1 participant