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

Klaus D. Witzel klaus.witzel at cobss.com
Mon Jul 3 17:30:21 UTC 2006


Hi Nicolas,

on Mon, 03 Jul 2006 18:01:32 +0200, you wrote:

> Klaus,
>
> you will find an explanation and link to possible workaround into note  
> attached at http://bugs.impara.de/view.php?id=3993

Thank you Nicolas for pointing me to the symptom. Sames happens in Number  
class>>canParseAsScaledDecimal:... :(

Attached a fix for both methods, now Scanner scans all the tokens from the  
.changes file. It should be able to do so because at the time the .changes  
where recorded they where syntactically correct.

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

> Nicolas
>
>
> Klaus D. Witzel:
>> Entered
>>   - http://bugs.impara.de/view.php?id=3993
>>
>> The following statement works:
>>
>>   Number readFrom: '1.0e-10 .txt' readStream
>>
>> But when reading the same string from a file
>>
>>   Number readFrom: (FileStream readOnlyFileNamed: 'Number1.0e-10 .txt')
>>
>> it fails with the attached DNU. Note that in order to reproduce, the
>> string '1.0e-10 .txt' must be put into the file named 'Number1.0e-10  
>> .txt'.
>>
>> /Klaus
>>
>> P.S. I stumbled over this when using Scanner for scanning all the tokens
>> in the .changes file.
>>
>
>
> ________________________________________________________________________
> iFRANCE, exprimez-vous !
> http://web.ifrance.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Number-class-canParse-fix-kwl.1.cs
Type: application/octet-stream
Size: 1352 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060703/36d3ae2d/Number-class-canParse-fix-kwl.1.obj


More information about the Squeak-dev mailing list