From: ahoward Date: 2002-12-13T09:48:15+09:00 Subject: Re: Inheritance Question On Fri, 13 Dec 2002, Gavin Sinclair wrote: G> There's not much you can do about this, except redefine Matrix#to_f to return G> "self.class.new", if it can be done. Then, you can agitate for this change to G> be included in the distribution. G> G> (I could be barking up the wrong tree, though...) i got given much crap for taking this approach not too long ago (note that i agree with you). i really think self.class.new follows POLS... even if dangerous... i *think* i was advocating this (self.class.new) as a general library practice... -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================