POV-Ray : Newsgroups : povray.off-topic : Generics annoyance : Re: Generics annoyance Server Time
4 Sep 2024 13:20:22 EDT (-0400)
  Re: Generics annoyance  
From: Warp
Date: 14 Apr 2010 12:47:26
Message: <4bc5f19e@news.povray.org>
Nicolas Alvarez <nic### [at] gmailcom> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.