POV-Ray : Newsgroups : povray.off-topic : Lots of statistics : Re: C# Server Time
29 Jul 2024 14:15:51 EDT (-0400)
  Re: C#  
From: Darren New
Date: 18 Aug 2012 00:36:11
Message: <502f1bbb$1@news.povray.org>
On 8/16/2012 7:34, Warp wrote:
> Darren New<dne### [at] sanrrcom>  wrote:
>>> Even if it does, then the language could implicitly do with it what C++'s
>>> virtual inheritance does. You can still forbid all other types of diamond
>>> inheritance if you so wish.
>
>> You could, but then it's getting weird.
>
> What would be weird about it?

What about diamond inheritance from Number or Enum or something like that? 
There would be a bunch of cases where you could reasonably expect diamond 
inheritance to work, or where there's one class under Object which is 
nothing but some extra routines you want all *your* classes to inherit.

I.e., it's a very ad hoc rule that tells the programmer that the language 
designer didn't know how to solve the problem but recognized it needed 
solving. :-)

-- 
Darren New, San Diego CA, USA (PST)
   "Oh no! We're out of code juice!"
   "Don't panic. There's beans and filters
    in the cabinet."


Post a reply to this message

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