From: Massimiliano Mirra Date: 2001-12-11T11:05:18+09:00 Subject: [ruby-talk:28162] Re: The benefits of dynamic typing? On Tue, Dec 11, 2001 at 09:02:13AM +0900, Harry Ohlsen wrote: > However, I also wonder how one would do the generalisation. What class > would I make the change to, in order to catch calls to +() on all objects > of ANY numeric type? Perhaps I am missing something, but doesn't the following do just that? class Numeric alias old_plus + [...] end It should take care of Fixnum and Float at least. Massimiliano