[Prev][Next][Index][Thread]
Re: Language question, a little bit OT
On Saturday, August 4, 2001, at 01:59 PM, Stefan Schmiedl wrote:
> Common Lisp and Dylan are dispatching methods according to their
> argument types and support multiple inheritance.
>
> C++ does the same, I imagine, but I don't know about multiple
> inheritance there. It's too complicated for me, just like those
> 3d-arcade games :-)
No C++ doesn't do multiple dispatch.
>
> Java and Delphi dispatch on argument types but do not support MI.
No, they don't do multiple dispatch either.
>
> Python, Perl and Ruby seem to use Smalltalks message passing
> and support single inheritance only. (Yes, I know about the module
> trick in Ruby, but that's no real MI.)
>
> Does anyone know a language with both message passing and MI?
> Or is there some fundamental reason that these two don't match?
>
If you're going to go to the trouble to get dispatch right, you've
probably got decent language designers who also got inheritance right
too.
;^)
Raf
References: