Multiple Inheritance of Classes
Yigal Chripun
yigal100 at gmail.com
Wed Aug 13 01:09:36 PDT 2008
superdan wrote:
> Yigal Chripun Wrote:
>
>> About your first thought: can you compare your (C++ templates)
>> solution with D mixins? why would I choose that approach instead of
>> template mixins if it's only good for inheritance of
>> implementation? I think (and I'm sure you'll correct me if I'm
>> wrong) that mixins remove the need for that pattern entirely.
>
> how would the mixin solution look like?
I've attached a file with a sample solution with mixins. you can put
both mixins in the most derived class or put one inside the other (as
it is now)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: templates.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080813/aa30ae60/attachment.ksh>
More information about the Digitalmars-d
mailing list