[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Probably bug in implementation of numerical constant parsing
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Tue, 18 Sep 2012 00:23:13 +0300
On 9/17/12, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> print(3....5)
> (That is also a number followed by '..' followed by a number.)
IMHO, such ambiguity should be resolved in favor of integer numbers,
because integers are used far more frequently.
3..5 = 3|..|5
3...5 = 3|..|.5
3....5 = 3|..|..|5 = error