|
 |
Nicolas Alvarez <nic### [at] gmail com> wrote:
> Warp wrote:
> > I really can't understand what would be the problem in supporting
> > full-fledged multiple inheritance.
> >
> > If your answer contains the term "diamond inheritance", then forbid
> > diamond inheritance, not multiple inheritance.
> If you add multiple inheritance to a language where every class inherits
> from a common base class (Object), every time you multiple-inherit you're
> getting a diamond.
Then don't make every class inherit from a common base class. Interfaces
don't, so why should classes?
If you really want must have classes inherit from Object, then simply
allow interfaces to have member variables and function implementations.
Then you'll have full-fledged multiple inheritance without diamond
inheritance.
--
- Warp
Post a reply to this message
|
 |