|
Everything derives from object in C# hierarchies. Therefore, if MI was allowed you would automatically have a "diamond of death" each time you use it. Unless of course, all inheritance were virtual, but that would be too costly.
I think C# really misses not a full-fledged MI, but some form of mix-ins.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Ok, that makes sense. I like the phrase "diamond of death" - I shall remember that one!
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^]
|
|
|
|
|
AT the .NET Launch conference, the fellow that gave the keynote claimed that only a few people actually know how to design languages, compilers, etc. for Multiple Inheritence. They ommitted the feature for that reason.
<signature>
It's good to live,
Josef Wainz
Software Developer
|
|
|
|
|
Well, they do have MI in C++, so I'm sure they could have asked the C++ guys something
Regards,
Alexandru Savescu
|
|
|
|
|
Alexandru Savescu wrote:
they could have asked the C++ guys something
Or Eiffel guys, or CLOS guys, or even Python guys.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
That seems to show that a few people actually know how to design languages, compilers, etc. [period]
In my mind, C# is more of a product from Microsoft than an language per say.
That is, of course, just an opinion.
I like MI because I want the language to allow me to express myself as much as I can, and there are not many interesting relationship apart from "is-a" that defines inheritance in the first place, and you find that quickly, modeling "real world objects" in OO diagram, you quickly find use for multiple inheritance!
Lets map the "problem", not the "solution" (Problem is the real world object, Solution is the "interface" coming from the computer science bag of tricks)
|
|
|
|
|
It can be a good thing but in the wrong hands it can make a developers life a nightmare.
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
I couldn't agree with you more!
Jerry
|
|
|
|