From: Christoph Date: 2002-05-31T01:24:39+09:00 Subject: Re: Infinity (?!) "Dossy" wrote in .... > Considering that Ruby is an OO language, the fact that the > implementation is so tightly coupled to the underlying architecture > surprises me. Maybe you are right - the closeness of Ruby's Numeric classes to ordinary C-arithmetic is possibly the root cause for some of the ``numerical inconsistencies''? > Just as true, false and nil are instances of TrueClass, FalseClass > and NilClass, I would have assumed infinity to be an instance of > Number, along with NaN being an instance of Number as well. > Or, something like that. You can find an implementation for a ``something like" class in the thread [ruby-talk:13315]. /Christoph