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

while statement modifier returns blocks instead of running the code ( say ({ 42 } while $++ < 3) ) #6016

Open
p6rt opened this issue Jan 20, 2017 · 1 comment
Labels

Comments

@p6rt
Copy link

@p6rt p6rt commented Jan 20, 2017

Migrated from rt.perl.org#130598 (status was 'new')

Searchable as RT130598$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jan 20, 2017

From @AlexDaniel

Code​:
say ({ 42 } while $++ < 3)

Result (2015.12)​:
(42 42 42)

Result (2016.02,HEAD)​:
(-> ;; $_? is raw { #`(Block|72397000) ... } -> ;; $_? is raw { #`(Block|72397072) ... } -> ;; $_? is raw { #`(Block|72397144) ... })

If somebody wants to argue that the current behavior is right, then please consider this​:

Code​:
say ({ 42 } for ^3)

Result (2015.12,HEAD)​:
(42 42 42)

Bisectable points to rakudo/rakudo@386905f

@p6rt p6rt added the regression 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
1 participant
You can’t perform that action at this time.