[ANN] Multimethod.py -- multimethods for Python
Aahz Maruch
aahz at netcom.com
Tue Jan 11 14:28:58 EST 2000
In article <1264508924-1480880 at hypernet.com>,
Gordon McMillan <gmcm at hypernet.com> wrote:
>Doug Hellmann wrote:
>>
>> How is this different from function overloading, as implemented
>> in C++? I'm not a C++ user, but my impression is the effect
>> would be the same. Is that the point?
>
>Not at all. C++ (and Java) are limited to figuring out one override
>/ overload at a time. If you are dealing with base class pointers,
>you need to bounce the message around for awhile to resolve all of
>them. First, C++ will discover the proper derived class (the override),
>and then the proper overload. Unfortunately, this means declaring
>scads of methods which don't do anything except let the language
>stumble through the resolution.
Hmmm... So it's kind of like sparse overloading? ;-)
--
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Have a *HAPPY* day!!!!!!!!!!
More information about the Python-list
mailing list