[Fix][BUG] Number does not read '1.0e-10 .txt' from file

David T. Lewis lewis at mail.msen.com
Tue Jul 4 14:03:03 UTC 2006


On Mon, Jul 03, 2006 at 11:00:54PM +0200, nicolas cellier wrote:
> Le Lundi 03 Juillet 2006 19:30, Klaus D. Witzel a ?crit :
> >
> > BTW: didn't look at how to integrate into Scanner the possible workaround ?
> > you mentioned, I think that Scanner just asks Number readFrom: aStream.
> >
> > Klaus
> 
> That's exactly that. Scanner uses Number readFrom:
> You just have to redirect Number class>>readFrom: to a call to NumberParser 
> alternative.

I put a cleanup and fix for the the original problem in Mantis 3993 (I was
the cause of the original bug). But I think that NumberParser (Mantis 3512)
is a better solution. It is better organized, it solves several other
number parsing problems, and it is faster than the current parser even
after my cleanup.

Dave




More information about the Squeak-dev mailing list