-
Notifications
You must be signed in to change notification settings - Fork 1
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
return should apply to the lexically enclosing routine, map is no exception #465
Comments
From daniel@ruoso.comThe following two snippets of code are supposed to behave the same: sub bar($code) { $code() }; and sub foo { map { return 1 }, 1; return 2 }; say foo; both are supposed to return "1". For some reason, map is being handled specially, while it is supposed to daniel |
From @bbkron Moscow build: perl6 -e 'sub bar($code) { $code() }; sub foo { bar { return 1 }; return perl6 -e 'sub foo { map { return 1 }, 1; return 2 }; say foo;' |
@coke - Status changed from 'new' to 'open' |
From @pmichaudNow fixed in nom dc16a4f -- needs test verification and then ticket can Pm |
From @tadzikOn Fri Jul 01 14:11:43 2011, pmichaud wrote:
Not really fixed it seems:
This is perl6 version 2011.04-1914-gf2857b7 built on parrot 3.7.0 |
From @tadzikOn Wed Sep 14 14:34:08 2011, tadzik wrote:
The problem was with map being lazy. Proper test added in |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#61126 (status was 'resolved')
Searchable as RT61126$
The text was updated successfully, but these errors were encountered: