# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #120838] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=120838 >
<lizmat_> r: sub a (:$b) {say $b}; a(:b<foo>) # this works <camelia> rakudo-parrot 1049b4, rakudo-jvm 1049b4: OUTPUT«foo» <lizmat_> r: sub a (:$b($c)) {say $c}; a(:b<foo>) # this doesn't, but should? <camelia> rakudo-jvm 1049b4: OUTPUT«Flattening named argument must have VMHash REPR» <camelia> ..rakudo-parrot 1049b4: OUTPUT«Not enough positional parameters passed; got 0 but expected 1 in sub-signature of parameter $b [...] <lizmat_> std: sub a (:$b($c)) {say $c}; a(:b<foo>) <camelia> std 3b262af: OUTPUT«ok 00:01 128m» <lizmat_> Am I doing something wrong with the expanded pair syntax as described in [Coke]'s blogpost <masak> r: sub a (:b($c)) {say $c}; a(:b<foo>) <camelia> rakudo-parrot 1049b4, rakudo-jvm 1049b4: OUTPUT«foo» <masak> I think the :$b($c) form should either Just Work <masak> or have a much better error message. <masak> (and S06 will probably know which) * masak submits rakudobug <lizmat_> ah, now I see it :-), thanks masak++ <masak> (also, the fact that Rakudo JVM gives something different is suspect in itself) <lizmat_> indeed