Re: RFC 98 (v1) context-based method overloading

[email protected] (Nick Ing-Simmons) Thu, 17 Aug 2000 20:01:18 +0000
Newsgroups perl.perl6.language.subs
Message-ID <E13PVqo-0006pF-00@roam1>
David L . Nicol <[email protected]> writes:
>It will run faster, because it doesn't have to evaluate
>the want().  (97,98) doesn't invalidate the current way of doing
>things, it just gives a new way. And in syntax that is currently
>erroneous.

Consider :

sub outer
{
 ....
 $object->aSub;
}

The test for want still has to be done (implicitly) so that outer 
can decide which version of aSub to call depending on context 
that outer was called in.

-- 
Nick Ing-Simmons