|
|
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
|
|