Bug in Shout number parsing

Andrew Tween amtween at hotmail.com
Sun Mar 4 13:50:34 UTC 2007


Hi Bert,
> Shout parses integers with exponent incorrectly:
>
> 1e3

Thanks. That needs a fix.

However, I believe that the latest version on SqueakMap
(Shout.3.15-tween.66.mcz), includes fixes for all the other examples below...

> 2r1e7
> 2r1.1
> 2r1s3
> 2r1.1s3

Incidently, I had previously created some unit tests (ShoutTests-tween.8.mcz on
squeaksource), for checking the number parsing. This should make fixing the 1e3
problem, without breaking everything else, much easier.

Andy




More information about the Squeak-dev mailing list