From: Jim Freeze Date: 2002-12-14T01:54:27+09:00 Subject: Re: Inheritance Question On Saturday, 14 December 2002 at 1:50:22 +0900, ahoward wrote: > > > >>>>> "J" == Jim Freeze writes: > > > [snip] > > J> Well, the way Matrix is setup, it makes even using DelegateClass > > J> difficult. > [snip] > > ** > > 'never call Class.method from any instance method lest ye be uninheritable' > > ** > > for instance, if all calls to Matrix.method made from inside Matrix instance > methods are replaced with type.method - Matrix works identically and becomes > inheritable. to me this seems abosolutely reasonable, though some would > claim class designers might want to enforce the return of a specific object > type from certain methods. i would say this has NO place in Ruby for the > following reasons > I agree. I think for 1.7 and forward, it should class.method instead of type.method? Jim -- Jim Freeze ---------- Some don't prefer the pursuit of happiness to the happiness of pursuit.