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
42, 44, 22 -> *@a { say @a.perl } #2577
Comments
From @zhuomingliangJimmyZ> nom: if 42 -> *@_ { say @_.perl } JimmyZ> niecza: if 42, 44, 22 -> *@a { say @a.perl } JimmyZ>nom: if 42, 44, 22 -> *@a { say @a.perl } jnthn> JimmyZ: oh, oddness... JimmyZ> nom: while 42, 44, 22 -> *@a { say @a.perl; last } |
@coke - Status changed from 'new' to 'open' |
From @usev6This has not changed: $ perl6 -e 'if 42, 44, 22 -> *@a { say @a.perl }' $ perl6 -e 'while 42, 44, 22 -> *@a { say @a.perl; last }' |
1 similar comment
From @usev6This has not changed: $ perl6 -e 'if 42, 44, 22 -> *@a { say @a.perl }' $ perl6 -e 'while 42, 44, 22 -> *@a { say @a.perl; last }' |
From @awwaiidPutting parens around the signature makes it work: $ perl6 -e 'while 42, 44, 22 -> (*@a) { say @a.perl; last }' $ perl6 -e 'if 42, 44, 22 -> (*@a) { say @a.perl }' I don't know if the parenthesis SHOULD be required or not. |
From @zoffixznetOn Sat, 10 Dec 2011 18:37:03 -0800, jimmy.zhuo@gmail.com wrote:
Thank you for the report. This is now fixed. Fix: Raku/nqp@8e7201eb64 On Mon, 11 Jan 2016 18:43:32 -0800, awwaiid wrote:
No, with parentheses you're taking a single positional arg and then unpacking its Capture. |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#105872 (status was 'resolved')
Searchable as RT105872$
The text was updated successfully, but these errors were encountered: