develooper Front page | perl.perl6.compiler | Postings from April 2011

[perl #88562] rakudo multi dispatch bug

From:
woshini
Date:
April 14, 2011 01:21
Subject:
[perl #88562] rakudo multi dispatch bug
Message ID:
rt-3.6.HEAD-27921-1302768264-365.88562-82-0@perl.org
# New Ticket Created by  woshini 
# Please include the string:  [perl #88562]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=88562 >


(15:54:45) *woosley: *rakudo: multi sub foo(0, $){}; multi sub foo(Int $n,
Str $a="A"){say $a}; foo(2,"A")
(15:54:49) p6eval: rakudo 4bf132: OUTPUT«No applicable candidates found to
dispatch to for 'foo'. Available candidates are:␤:(Int where (0), Any
)␤:(Int $n, Str $a = { ... })␤␤ in main program body at line
22:/tmp/bHQu4n3fq6␤»
(15:56:17) *woosley: *rakudo: multi sub foo(Int $n, Str $a="A"){say $a};
foo(2,"A")
(15:56:21) p6eval: rakudo 4bf132: OUTPUT«A␤»
(15:56:59) *woosley: *hmmm, this should be a rakudo bug
(16:02:51) woosley: rakudo: multi sub foo(0, $){}; multi sub foo(Int $n,
$a="A"){say $a}; foo(2,"A")
(16:02:54) p6eval: rakudo 4bf132: OUTPUT«A␤»



-- 
Woosley.Xu




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About