Experiments
sqrmax at cvtci.com.ar
sqrmax at cvtci.com.ar
Wed Feb 17 22:48:46 UTC 1999
Hi Tim.
>>Then asFloat, and then 0.0 gets sent ln etc etc etc. Now max: chooses
>>-0.0, and then the result of the max: is truncated to get anInteger and
then
>>Squeak complains that -0.0 can't be truncated. ???
>Another strangeness -- negative-zero truncates to (integer) zero fine on
>my Mac running Squeak 2.3.
The thing is that
(0.0 raisedTo: 0.75) isInfinite
evaluates to true, when (0.0 raisedTo: 0.75) gets sent truncated the
primitive fails, and the error line below the primitive complains because the
receiver was NaN or Infinite, and in this case it's the second one.
Andres.
More information about the Squeak-dev
mailing list
|