[DGD] Virtual inheritance?

Erwin Harte harte at xs4all.nl
Sat Mar 15 18:36:35 CET 2003


On Sat, Mar 15, 2003 at 06:31:35PM +0100, 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:
[...]
> 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?

Have you actually _tried_ this in DGD?  This 'virtual inheritance' you
speak of is its regular behaviour for such situations.

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list