Re: RFC 97 (v1) prototype-based method overloading
[email protected] (Graham Barr) Tue, 15 Aug 2000 11:34:51 +0100
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 14, 2000 at 07:53:10PM +0000, Nick Ing-Simmons wrote: > 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. I would add to that, that as long as the addition of this does not effect the performance of calling the methods that want the "relaxed perl5-ish" semantics. Graham.