From: Jim Weirich Date: 2005-07-29T12:21:03+09:00 Subject: Re: What's so special about operators, built-in classes and modules? On Thursday 28 July 2005 10:26 pm, Trans wrote: > > I'd appreciate it if someone could clarify once and for all > > how the diamond inheritance problem doesn't exist in Ruby. > > B/c ruby _linearizes_ the inclusions. I am going to disagree. Linearization addresses MRO (method resolution order), which has little to do with diamond inheritance. MRO problems occur in general MI. Diamond inheritance issues deal more with the repeated base class instance variables. Ruby handles instance variables in such a way that repeated inheritance in the diamond pattern is just not a problem. (See ... a short version of my long winded answer elsewhere in this thread). -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)