From: Dave Thomas Date: 2004-01-13T06:52:34+09:00 Subject: Re: faster integer arithmetics & arbitrary precision floating number On Jan 12, 2004, at 15:43, Charles Mills wrote: > What abouts Rubys design would make integer arithmetic slower than > integer > arithmetic in Perl? class Fixnum def +(other) self.to_s + other.to_s end end puts 1 + 2 #=> "12" Ruby has to do full OO method dispatch for basic arithmetic operators. Cheers Dave