2008/8/31 Stéphane Rollandin lecteur@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