From: Ross Konsolebox Date: 2012-11-04T22:07:19+09:00 Subject: Re: Support for multiple Inheritance by classes Peter Hickman wrote in post #1082748: > Even though other languages handle multiple inheritance without any > problems they each handle it in different ways which can lead to subtle > bugs when moving from one language to another. Some languages have even > changed how they handle multiple inheritance between versions (Python > springs to mind here, multiple inheritance got 'clarified' at one point > - or so my memory tells me). Good points but think they're really not that essential, especially if it's only about one language and just the use of it. > There is only one way to do single inheritance and this is a good thing. Considering the capabilities of multiple inheritance and some situations where single inheritance don't apply and needs workarounds - like when you make a class that needs to inherits a class from an external library but also needs to inherit its natural parent class whereas you had no choice but to just include the contents of the natural parent class to it - I believe that's not always true. > Coming from languages that allow for multiple inheritance I must say I > have yet to encounter a situation where I have said "this would be so much easier with multiple inheritance" Perhaps but please consider the example situations I gave. I doubt that solutions could always be done without redundancy either by code or by work while not sacrificing consistency among classes and not using workarounds. -- Posted via http://www.ruby-forum.com/.