Exponents of numbers

Andreas Raab andreas.raab at gmx.de
Thu Sep 15 08:14:02 UTC 2005


Hi -

I just got horribly bitten by the fact that 16r1d4 is being parsed as 
65536 (yes, it really does). Looking at the methods in question it 
appears that Number class>>canParseExponentFor:base:from: acceps *all* 
of e, d, or q as exponent indicator.

Why??? This seems completely superfluous and causes actual harm if you 
happen to misspell a hex constant.

Cheers,
   - Andreas




More information about the Squeak-dev mailing list