Bug in Shout number parsing
Bert Freudenberg
bert at freudenbergs.de
Sun Mar 4 11:43:01 UTC 2007
Shout parses integers with exponent incorrectly:
1e3
2r1e7
It treats the exponent part as message send.
Same for non-decimal floats:
2r1.1
The decimal point is parsed as binary message.
And scaled decimals with radix are affected, too:
2r1s3
2r1.1s3
Granted, most people aren't aware of Smalltalks powerful number
literals, but they are supported and sometimes even used (see, e.g.,
CornerRounder class>>initialize where I noticed the Shout problem).
- Bert -
More information about the Squeak-dev
mailing list
|