Multiple Inheritance of Classes

BLS nanali at nospam-wanadoo.fr
Thu Aug 14 01:00:16 PDT 2008


Chris R. Miller schrieb:
> BLS wrote:
>> I guess D will never support MI.
>> Beside Mixins and Interfaces, you have the option to implement the (not
>> very well known) twin pattern to simulate multiple inheritance.
>>
>> Google for:
>> Twin – A Design Pattern for Modeling Multiple Inheritance
>>
>> Page 4-6 , for the impatient.
>>
>> /I don't use this pattern 'cause it produces too much overhead, and it
>> does't solve all the problems  /
>>
>> Bjoern
>> ps
>> I do not belong to the "MI is eval" group. ... probabely more to the "MI
>> in C++ is eval folks".
>> I think  Eiffel shows that at lesat some MI related problems can be solved.
> 
> I don't think it's evil, but I acknowledge that a sufficiently advanced
> idiot can abuse it to the point of making a code base un-salvageable.
> Then again, there are a ton of useful tools that can be quite
> entertaining in the hands of a sufficiently curious idiot ("what's this
> nailgun do?")
> 
LOL. Yeah, like home improvement. When in doubt take a hammer.(and let's 
see what happens...) Bjoern



More information about the Digitalmars-d mailing list