On Tue Apr 21 03:50:19 2009, masak wrote:
> This might be in RT already, but I didn't find it, so...
>
> rakudo: multi foo (@a) { 1 }; multi foo ($a, %h?) { 2 }; say
> foo(<1 2 3>);
> rakudo 69b318: OUTPUT«Ambiguous dispatch to multi 'foo'.
> Ambiguous candidates had signatures::(Positional.new
rakudo: say Positional[Int] ~~ Any
rakudo e8f624: OUTPUT«1»
oh hmm
rakudo: say Any ~~ Positional[Int]
rakudo e8f624: OUTPUT«0»
But it kinda surprises me...
(I thought this was why Positional and Any were sorting to same
precedence level.)
rakudo: multi f($x) { 1 }; multi f(@x) { 2 }; say
Jonathan (>), Carl (>>):
> > This might be in RT already, but I didn't find it, so...
> >
> > rakudo: multi foo (@a) { 1 }; multi foo ($a, %h?) { 2 }; say
> > foo(<1 2 3>);
> > rakudo 69b318: OUTPUT«Ambiguous dispatch to multi 'foo'.
> > Ambiguous candidates had signatures::(Positional.new() @a)
Jonathan Worthington wrote:
> Carl Mäsak (via RT) wrote:
>> # New Ticket Created by "Carl Mäsak"
>> # Please include the string: [perl #64922]
>> # in the subject line of all future correspondence about this issue.
>> # http://rt.perl.org/rt3/Ticket/Display.html?id=64922 >
>>
>>
>> This might b
Carl Mäsak (via RT) wrote:
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #64922]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=64922 >
This might be in RT already, but I didn't find it, so...
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #64922]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=64922 >
This might be in RT already, but I didn't find it, so...
rakudo: multi foo (@a) { 1 };