There was a Parcplace package extending VW with such classes (NaN, Infinity, Infinitesimal), and I liked it (can't remember if inheriting from Magnitude though). The main difference I see with state of the art FPU practice is Exception handling: that does force Exception handling where users might prefer traditional exceptional values... Nicolas 2009/7/8 Igor Stasenko <siguctua@gmail.com>:
2009/7/8 Andres Valloud <avalloud@smalltalk.comcastbiz.net>:
Would NaN be polymorphic with floats?
Do you mean , be a part of Number/Float class hierarchy? Answer is: no. Because NotANumber is not a number :)
-- Best regards, Igor Stasenko AKA sig.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project