swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple inheritance


From: J.J. Merelo Guervos
Subject: multiple inheritance
Date: Wed, 13 Nov 96 11:22:10 +0100

>>>>> "Ginger" == Ginger Booth <address@hidden> writes:

Hi, Ginger'n'all

    Ginger> get into situations where I want to combine two complexes
    Ginger> of behaviors, like:

    Ginger> Is there a thought process I might acquire to become less
    Ginger> aggravated at the lack of multiple inheritance?  Does one
    Ginger> just stack them up and paste bandages over the parts that
    Ginger> don't belong in the object under construction?  Can
    Ginger> protocols have code?

You are basically right here, protocols seem to be the only way of
achieving multiple inheritance.. that's the way I did it in the neural
class hierarchy. The other way is using _private_ inheritance, a la
C++, but it's kind of awkward. 

See ya!

                                JJ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]