Re: RFC 97 (v1) prototype-based method overloading

[email protected] (Nick Ing-Simmons) Mon, 14 Aug 2000 19:53:10 +0000
Newsgroups perl.perl6.language.subs
Message-ID <E13OQII-0004g1-00@roam1>
Perl6 Rfc Librarian <[email protected]> writes:
>
>When I read the chapter on OO in the second edition camel book I
>was saddened that C++ style method overloading was not explicitly
>described.  Ever hopeful, I wrote some quick code that I hoped would
>do what I meant and discovered that it didn't.  This document is
>an attempt to remedy the situation.

Contrary wise - I am saddened that C++ does not allow you to handle all the
calls to a method in one place regardless of the types of the arguments ;-)
You have to jump through all kinds of "conversion" hoops just so you 
can pass "most things" to a method.

So long as we can still get the "relaxed perl5-ish" semantics (e.g. no 
prototype or prototype of "@") I don't see it does any harm 
to try for the other kind too.

-- 
Nick Ing-Simmons