[Prev][Next][Index][Thread]
Re: Language question, a little bit OT
Aha! I have to do a little bit of cleaning in my attic ...
From: Michael Schuerig <schuerig@acm.org>
To: To info-dylan@ai.mit.edu
Date: 2001-08-04 15:15
Subject: Re: Language question, a little bit OT
>
> No, C++ does not do the same. Dynamic dispatch happens in C++, as well
> as Java, Delphi, Python, Perl, Ruby, and Smalltalk, is only based on
> the class of the object receiving the message.
I am having difficulties in understanding this sentence ...
> C++ is the only one of
> the listed languages that support multiple inheritance.
Well, in another reply Python was said to do this, too.
And I know that Common Lisp does have MI.
> Some of these
> languages also support static overloading where the same name can be
> used for methods with different argument types.
Now I am confused ... "overloading" at compile time, e.g. in Delphi,
is the mechanism allowing "dynamic dispatch" at run time, no?
> In the case of C++ this
> can be used for generic programming -- with the help of some intricate
> method lookup wizardry behind the scenes.
Is this the template stuff the STL is about?
Stefan
--
Stefan Schmiedl
EDV-Beratung, Programmierung, Schulung
Loreleystr. 5, 94315 Straubing, Germany
Tel. (0 94 21) 74 01 06 Fax (0 94 21) 74 01 21
Public Key: http://xss.de/stefan.public
Change is Constant
Follow-Ups:
References: