[perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-08-19 Thread jn...@jnthn.net via RT
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

[perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-04-23 Thread Carl Mäsak via RT
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

[perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-04-23 Thread Carl Mäsak via RT
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)

Re: [perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-04-22 Thread Moritz Lenz
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

Re: [perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-04-22 Thread Jonathan Worthington
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...

[perl #64922] An unamiguous case of dispatch treated as an ambiguous one

2009-04-21 Thread Carl Mäsak
# 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 };