[comp.lang.smalltalk] Multiple Inheritance in ST80 V2.5

randy@tigercat.den.mmc.com (Randy Stafford) (06/10/91)

In previous versions of Smalltalk (i.e. 2.3 and prior), there was a subclass of class Metaclass called "MetaclassForMultipleInheritance".  You could try filing
this in to the newer versions of Smalltalk and relieve the need to "simulate"
multiple inheritance.  No guarantees are offered as to whether this would work.
You will also need some behaviors from class Class (like
 #subclass:otherSupers:... and its senders) which are absent in 2.5.

Failing this, you could just set up an instance variable in your subclass, and
bind to it an instance of the other class you want to inherit from.  Messages
recieved by instances of YOUR subclass could then be delegated to the object
bound to the instance variable.


Randy Stafford