From: Christoph (news_chr) Date: 2003-10-03T14:30:19+09:00 Subject: Re: newbie question: function overloading "Dimitrios Galanakis" wrote: .... > class together and with real numbers). In other words how can I simplify > the following code by removing the ifs? Short answer - you can't - the coerce frame-work is probably your best bet in a single dispatched world. Expect to see more and more `ifs and elses" the deeper you extend the Numeric class hierarchy. See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/51566 for an interesting snippet on Matz's thinking on the subject. /Christoph