Squeak 3.9: using SqNumberParser in Number>>readFrom:
Lukas Renggli
renggli at gmail.com
Sun Mar 25 07:14:58 UTC 2007
> Thanks a lot. I don't know what went wrong with my saving to the
> repository, sorry.
>
> It looks like visitNumberDescription: will raise an error on negative numbers:
>
> self contents allSatisfy: [ :each | '0123456789.' includes: each ]
>
> maybe something like this? :
>
> (self contents allButFirst allSatisfy: [ :each | '0123456789.'
> includes: each ] )
> and:['-0123456789.' includes self contents first]
Indeed, good catch. I will fix this as soon as possible, unless you
commit your change ;-)
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the Squeak-dev
mailing list
|