From: Stefan Rusterholz Date: 2008-02-11T06:21:15+09:00 Subject: Re: Inheriting from / Delegating to Integer - Currency class Alex Shulgin wrote: > On Feb 9, 4:25�pm, Pascal Ehlert wrote: >> DelegateClass? >> It still feels wrong to me to write +, -, * and / on my own, although >> they are exactly the same as in the Integer class. > > Huh?.. And what is the result for $5 divided by $1? ;) Hrm, I don't know why my answer via google didn't show up. Maybe a mistake on my part. So here again: That would be a mathematically sound: 5. If you need an example to see that this even makes sense, consider: You have $5 in $1 pieces. How many $1 pieces do you have? Answer: $5/$1 = 5. With $1*$5 it's a bit different as powers other than 0 and 1 of $ as I can't find anything where that'd make sense :) Regards Stefan -- Posted via http://www.ruby-forum.com/.