# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74414] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74414 >
<masak> rakudo: multi foo(Int $x is rw) { say "writable" }; multi foo(Int $x) { "readonly" }; foo(42) <p6eval> rakudo 78faa0: OUTPUT«Ambiguous dispatch to multi 'foo'. Ambiguous candidates had signatures::(Int $x):(Int $x) [...] * masak submits rakudobug <masak> S06: "To allow modification, use the C<is rw> trait. This requires a mutable object or container as an argument (or some kind of type object that can be converted to a mutable object, such as might be returned by an array or hash that knows how to autovivify new elements). Otherwise the signature fails to bind, and this candidate routine cannot be considered for servicing this particular call. (Other multi candidates, if any, may succeed if they don't require C<rw> for this parameter.)" <moritz_> now you're just showing off :-) <masak> :P