Bug in Shout number parsing

Klaus D. Witzel klaus.witzel at cobss.com
Sun Mar 4 12:40:15 UTC 2007


On Sun, 04 Mar 2007 12:43:01 +0100, Bert Freudenberg wrote:
> 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).

... and NumberTest>>#testReadFrom which I reported to Andy maaany months  
ago ;-)

/Klaus

> - Bert -
>
>
>
>





More information about the Squeak-dev mailing list