[Mono-list] reusing interface implementation

Robert Jordan robertj at gmx.net
Tue May 27 11:58:21 EDT 2008


Chris Howie wrote:
> On Tue, May 27, 2008 at 10:32 AM, Mathias Tausig <mtausig at fsmat.at> wrote:
>> I was afraid that it wouldn't work. Still thank you for removing the doubts.
>> Do you know, why this doesn't work. I thought a bit about it, and couldn't
>> find a logical reason that would prevent it.
> 
> It's because the CLR does not allow one class to inherit from more
> than one other class.

Actually, some languages targeting the CLR do support multiple
inheritance inside their own closed world. They have their
own (non-standard) convention of mapping multiple class inheritance
to CLR's single class inheritance + multiple interface inheritance
rules.

   Many programmers see multiple inheritance as a
> bad thing.  See
> <http://en.wikipedia.org/wiki/Multiple_inheritance#Debate>.

This *is* the actual reason :)

Robert



More information about the Mono-list mailing list