Re: multi sub and invocants (related to colon question from earlier)

2005-05-17 Thread Luke Palmer
On 5/17/05, Aaron Sherman <[EMAIL PROTECTED]> wrote: > Let's say that that's true. You can certainly still end up in conflict: > > class A {...} > my A $a = A.new() but role { method x() {...} } > eval 'multi sub x(A $i:) {...}'; > > Now, the eval should work because A has

multi sub and invocants (related to colon question from earlier)

2005-05-17 Thread Aaron Sherman
There's some ambiguity in A/S 6 that I wanted to ask about. A6 says: Ordinary subs never have an invocant. If you want to declare a non-method subroutine that behaves as a method, you should declare a submethod instead. But S6 changes that without fully explaining itself: