[squeak-dev] Number readFrom: can we remove some "accidental" features

Igor Stasenko siguctua at gmail.com
Sun Aug 31 16:54:29 UTC 2008


2008/8/31 Stéphane Rollandin <lecteur at zogotounga.net>:
> nicolas cellier a écrit :
>>
>> Strangely, Squeak Number class>>#readfrom: used to accept non Smalltalk
>> syntax like:
>> (Number readFrom: '.2') -> 0.2 .
>> (Number readFrom: '2.e3') -> 2000.0 .
>
>> Now I see that Dave Lewis (dtl) asserted this feature:
>
>> I'd like to remove this feature.
>> Is it ok?
>
> I would vote for allowing those formats.
>

My guess it can stay, but only as separate helper method, which reads
a numbers and expecting non-smalltalk syntax.
And making sure that this behavior is completely separated from compiler!

> Stef
>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Squeak-dev mailing list