[DGD] Virtual inheritance?

Felix A. Croes felix at dworkin.nl
Sat Mar 15 18:34:26 CET 2003


johnny at herator.se wrote:

> In designing our new (shiny!!!, all new all different!) mudlib, we've come
> across the problem of multiple inheritance landing us with several copies of a
> single base class as in the following inheritance diagram:
>
>   Base
>   / \
>  /   \
> D1   D2
>  \   /
>   \ /
>  Class
>
> In C++ this is solved with virtual inheritance, which gives us only one copy of
> Base in each Class object. Is there any similar mechanism in DGD? If not, has
> anyone considered the difficulty of implementing one?

In DGD, "virtual" inheritance is the only kind that there is.

Regards,
Dworkin
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list