Re: Docs, questions and stuff
Re: Docs, questions and stuff
- Subject: Re: Docs, questions and stuff
- From: Chris Gehlker <email@hidden>
- Date: Fri, 24 Aug 2001 21:33:31 -0700
On 8/24/01 4:05 PM, "Georg Tuparev" <email@hidden> wrote:
>
Chris,
>
>
I think you are on a wrong list. We are not on the espresso makers
>
mailing lists where someone talks about a good new brand is a mixture of
>
colombian and arabic beens. Here we are talking about the programming
>
languages ObjectiveC and Java. Thanks God, neither supports the
>
missconcept called "multiple inheritance". Or are you referring to the
>
ability of ObjectiveC to support protocols, and the similar, but
>
castrated Java ability to support interfaces as MI?
LOL
Thanks Georg, I really enjoyed your post.
I was referring to to Java's interfaces "multiple inheritance" because I
seem so many computer science papers do that. The even have fancy names to
distinguish between the C++ style and the Java style but they escape me at
the moment. Something like Functional MI vs Procedural MI? I'm sure somebody
here will set me straight.
In ObjC, however, forwarding is the close equivalent C++'s MI. It lets one
use mix-ins, which is the only real use I have ever found for any form of
MI.
Whether C++ MI is a miss concept is a gray area. There is all that diamond
inheritance stuff that is great for making hard questions for college
students and must be a real PITA for compiler writers. As a simple
programmer, though, I have never seen it in the wild. If I ever did see it I
would know my design was seriously screwed and I go fix it. It works OK for
mix-ins.
So in practice using mix-ins is easy in ObjC and hard but doable in Java.
That non-bean language falls somewhere in the middle.
--
Heaven is under our feet as well as over our heads. -Henry David Thoreau,
naturalist and author (1817-1862)