Suggestion: Walter Bright, why not to implement multiple inheritance in D?

Walter Bright newshound at digitalmars.com
Sat Dec 2 10:22:50 PST 2006


Burton Radons wrote:
> As an aside to Walter, I stumbled on a solution to the multiple vtable 
> problem a couple years ago. Instead of putting the vtable in the object, 
> you put it in the reference, like with a delegate. Then if an object is 
> posing as a base type, you just select an appropriate vtable and offset 
> the pointer.

That is a good idea.



More information about the Digitalmars-d mailing list