[DGD] Virtual inheritance?

johnny at herator.se johnny at herator.se
Sat Mar 15 18:31:35 CET 2003


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?

-- 
Johnny Josefsson
Herator MUD
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list