On Mon Oct 04 13:23:30 2010, masak wrote: > <TimToady> rakudo: say +Method > <p6eval> rakudo 2ee5db: OUTPUT«0» > <TimToady> that seems completely bogus to me > <Grimnir_> it prints out the contents of both > <jnthn> ...no warning? > * masak submits +Method rakudobug > <jnthn> rakudo: multi foo() { }; multi foo($x) { }; say +&foo > <p6eval> rakudo 2ee5db: OUTPUT«2» > <jnthn> ffs. :-) > * jnthn dies a bit more inside. > <ash_> +&method returns the number of multi's? > <jnthn> ash_: I'm pretty sure it's not meant to in Perl 6. :-) > <ash_> it just does by chance? :p > <masak> not sure we have a ticket for this already. > <masak> I'm creating one Justin Case. > <jnthn> ash_: Way back in the annals of history, somebody decided that > the obvious thing MultiSub should inherit from is...ResizablePMCArray. > <masak> jnthn: that's... deplorable. :'( > > To be clear, numification of a Method shouldn't yield anything of the > kind in Rakudo. Most likely, it should warn or die.
Then much better: 17:03 < [Coke]> rakudo: say +Method 17:03 <+p6eval> rakudo 33f1cf: OUTPUT«Use of uninitialized value in numeric context0» 17:03 < [Coke]> rakudo: multi foo() { }; multi foo($x) { }; say +&foo 17:03 <+p6eval> rakudo 33f1cf: OUTPUT«No applicable candidates found to dispatch to for 'Numeric'. Available candidates are:: (Mu, Mu %_) in method Numeric at src/gen/CORE.setting:608 in sub prefix:<+> at src/gen/CORE.setting:1808 in block <anon> at /tmp/0UbVWVrGDB:1 in <anon> at /tmp/0UbVWVrG… Closable with tests. -- Will "Coke" Coleda