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
Can't pass in several same-named named parameters to a sub #2157
Comments
From @masak<masak> rakudo: sub foo(*%p) { say %p.perl }; foo(a => 'b', a => 'c') S06 explicitly allows passing the same named parameter several times. |
From @cokeOn Sat Sep 11 11:18:59 2010, masak wrote:
Partially fixed: 16:29 < [Coke]> rakudo: sub foo(*%p) { say %p.perl }; foo(a => 'b', a => 16:30 < [Coke]> rakudo: sub foo(*%p) { say %p.perl }; my %h = a => 'b'; -- |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrfoo(|%h, a => 'c') still broken in 2012.12 |
From @usev6This works now on rakudo.jvm. On rakudo.moar 'foo(|%h, a => "c")' doesn't give the correct result, yet: $ perl6-j -e 'sub foo(*%p) { say %p.perl }; foo(a => "b", a => "c")' $ perl6-j -e 'sub foo(*%p) { say %p.perl }; my %h = a => "b"; foo(|%h, a => "c")' $ perl6-m -e 'sub foo(*%p) { say %p.perl }; foo(a => "b", a => "c")' $ perl6-m -e 'sub foo(*%p) { say %p.perl }; my %h = a => "b"; foo(|%h, a => "c")' I added two tests (the second fudged 'todo' for rakudo.moar) to S06-signature/named-parameters.t with commit Raku/roast@42df59c101 |
1 similar comment
From @usev6This works now on rakudo.jvm. On rakudo.moar 'foo(|%h, a => "c")' doesn't give the correct result, yet: $ perl6-j -e 'sub foo(*%p) { say %p.perl }; foo(a => "b", a => "c")' $ perl6-j -e 'sub foo(*%p) { say %p.perl }; my %h = a => "b"; foo(|%h, a => "c")' $ perl6-m -e 'sub foo(*%p) { say %p.perl }; foo(a => "b", a => "c")' $ perl6-m -e 'sub foo(*%p) { say %p.perl }; my %h = a => "b"; foo(|%h, a => "c")' I added two tests (the second fudged 'todo' for rakudo.moar) to S06-signature/named-parameters.t with commit Raku/roast@42df59c101 |
From @jnthnOn Mon Jun 29 13:58:37 2015, bartolin@gmx.de wrote:
Fixed and unfudged. /jnthn |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77788 (status was 'resolved')
Searchable as RT77788$
The text was updated successfully, but these errors were encountered: