Multiple Inheritance of Classes
Chris R. Miller
lordSaurontheGreat at gmail.com
Thu Aug 14 00:45:39 PDT 2008
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?")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080814/ad8b7bdc/attachment.pgp>
More information about the Digitalmars-d
mailing list