Version 0 of Multiple inheritance with TclOO - how to resolve ambiguities

Updated 2011-01-20 08:09:55 by arjen

Arjen Markus (20 january 2011) A further experiment with TclOO: I remember from a book on Eiffel that multiple inheritance in C++ is actually a potential nightmare: what happens if you have two superclasses with methods or variables with the same name? This leads to ambiguities and they are not elegantly dealt with in C++ (at least that is how I remember it).

The code below constructs a class that has two superclasses, each with a variable "myname" and a method "print". The method seems to be resolved as