Suspected Spam: Re: Bug ... in Erlang

Serge Aleynikov serge@REDACTED
Tue Jun 17 20:07:34 CEST 2003


Running Win2000 Sp3:

(node1@REDACTED)1> os:type().
{win32,nt}
(node1@REDACTED)2> erlang:list_to_float("1.0e309").
1.00000e+0
(node1@REDACTED)3> 1.b.

hangs forever.

Raimo Niskanen wrote:
> Try also:
> 
> 1> 1.b.
> 
> On our R9B, patched, erl_eval starts a death spin. There is probably 
> some error checking in the shell (evaluator) that is missing.
> 
> Our soon to come R9C does not show the same error; the shell and 
> erl_eval has been somewhat rewritten. Nor does "1.0e309." death spin.
> 
> 17> 1.0e309.
> ** 1: illegal float **
> 17> .
> ** 1: syntax error before: '.' **
> 
> Unfortunately there is a semantic difference with the new erl_scan 
> (compared to the old), that it does not read input until the full stop 
> if there is a scan error before that. Therefore the syntax error on the 
> '.'. It can probably be fixed, but the question is if I must?
> 
> The same applies for:
> 
> 17> 16#.
> ** 1: illegal integer **
> 17> .
> ** 1: syntax error before: '.' **
> 
> / Raimo Niskanen, Erlang/OTP, Ericsson AB.
> 
> 
> 
> Joe Armstrong wrote:
> 
>>
>>  Try typing the following:
>>
>>     > 1.0e309.
>>
>>  Is this a bug?
>>
>>  /Joe
>>
> 
> 


-- 
================================================================
| Serge Aleynikov                          Tel: (973) 438-3436
| MIS Telecom                              Fax: (973) 438-1457
| IDT Corp.                                   serge@REDACTED
================================================================




More information about the erlang-questions mailing list