# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #92986]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=92986 >
<colomon> what I'm seeing (this is in master): MAIN(Int $n) doesn't
work. MAIN($n) works, but then hides MAIN("test") (ie if the
command-line argument is "test", MAIN($n) is called. Help?
<masak> colomon: the former is well-known. the latter sounds weird and new.
<colomon> masak: https://gist.github.com/1030030
multi sub MAIN($n) {
say "main $n { $n.WHAT }";
}
multi sub MAIN("test") {
say "main test (ie test case)";
}
<moritz> colomon: re-order the mutlis
<masak> huh, what?
<moritz> colomon: thing is, the main helper doesn't do a proper multi
dispatch (yet)
<masak> ah.
<colomon> moritz++
<moritz> but it just iterates over the candidates, and invokes the
first one it can bind to
* masak submits rakudobug