Bug ... in Erlang
Raimo Niskanen
raimo.niskanen@REDACTED
Tue Jun 17 18:53:02 CEST 2003
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
>
More information about the erlang-questions
mailing list