Re: [GD-General] Overhead of RTTI
Brought to you by:
vexxed72
From: Thatcher U. <tu...@tu...> - 2002-12-31 06:25:24
|
On Dec 24, 2002 at 02:11 -0000, Tom Forsyth wrote: > I would modify that to: "inheritance of multiple virtual classes is evil". > Multiple inheritance is just fine and dandy, as long as only one (or none) > of the parent classes is a virtual class. Ooh, this is one of my hot buttons! The "correct" (according to me :) statement is: Inheritance of multiple virtual classes is virtuous. Multiple inheritance is just fine and dandy, as long as ALL of the ancestor classes are virtual parents. MI of NON-virtual classes is where things get intolerably fubared. (I can expand on this or provide pointers if necessary.) Unfortunately, this situation makes it pretty damn confusing to maintain optimal use of "virtual public" and plain "public" throughout a hierarchy, in a team environment. My private thoughts these days are tending towards "MI is evil". -- Thatcher Ulrich http://tulrich.com |