On Sun Feb 22 13:37:39 2009, cspencer wrote:
> 
> [1:19pm] cspencer:rakudo: multi foo(Bool :$baz = Bool::False, *...@vals)  
> { say "foo" }; foo(:baz(Bool::True), 1, 2, 3);
> [1:19pm] p6eval:rakudo 2a9382: OUTPUT«No applicable candidates found  
> to dispatch to for 'foo'␤current instr.: '_block14' pc 91  
> (EVAL_16:47)␤»
> [1:19pm] cspencer:pugs: multi foo(Bool :$baz = Bool::False, *...@vals)  
> { say "foo" }; foo(:baz(Bool::True), 1, 2, 3);
> [1:19pm] p6eval:pugs: OUTPUT«foo␤»
> [1:20pm] cspencer:is rakudo's MMD not working correctly in the above  
> example?
> [1:23pm] jnthn:Hmm...well, named params don't participate int he  
> dispatch...but even so that call looks to me like it shoulda worked...
> [1:25pm] cspencer:jnthn: it seems to be the Bool type in the signature  
> that does it
> [1:26pm] cspencer:rakudo: multi foo(Int :$baz = 1, *...@vals) { say  
> "foo" }; foo(:baz(2), 1, 2, 3);
> [1:26pm] p6eval:rakudo 2a9382: OUTPUT«foo␤»
> [1:30pm] jnthn:Hmm..curious.
> [1:30pm] jnthn:cspencer: File a ticket, I'll look into it.
> [1:30pm] cspencer:will do

Fixed in git 14bba5f and added tests to S06-multi/syntax.t.

Thanks,

Jonathan

Reply via email to