POV-Ray : Newsgroups : povray.off-topic : And today, C# : Re: And today, C# Server Time
11 Oct 2024 03:16:34 EDT (-0400)
  Re: And today, C#  
From: Orchid XP v7
Date: 12 Feb 2008 14:25:17
Message: <47b1f29d$1@news.povray.org>
Warp wrote:
> Mike Raiford <mra### [at] hotmailcom> wrote:
>> Ever attempted to use multiple inheritance in C++?
> 
>   Yes, I have needed it a few times. It's very handy.

For example, perhaps you want to define a matrix class which is a 
collection but also a number. [Or at least, you can do arithmetic on it. 
Depends on how the number classes are structured.]

There are other important examples. It gets quite awkward without MI.

>   Besides, it's not like two Java/C# interfaces couldn't have functions
> with same names...

Ah yes, the real WTF: Java's MI-but-not-MI doesn't even actually fix the 
problem! ;-)

>   I don't like languages which artificially limit what I can do just
> because the creators feared diamond inheritance.

I can understand that...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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