in reply to Re: •Re: RFC: Class::DispatchToAll
in thread RFC: Class::DispatchToAll
Uh, oh. Multiple Inheritance.
A couple of years of doing Smalltalk (which didn't have multiple inheritance, but which let you fake interface interitance via mixins), and a couple of years of Java and C++ have lead me to believe that Multiple Inheritance is a Very Risky Thing, and that it can always be worked around by either composition or reducing to inheriting from one data-bearing class and multiple (data-less) interface classes. Doing so avoids the multiple destructor problem.
Perhaps you've run into a situation where multiple inheritance is the right thing to do. If so, I'd like to hear about it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RFC: Class::DispatchToAll
by Abigail-II (Bishop) on Jul 11, 2002 at 11:07 UTC |