[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Number Token Strings
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 26 Oct 2014 13:37:35 -0200
> In the latest (beta) release of Lua I notice the textual output for both
> floating and integer number formats remains <number> (llex.c line 44).
>
> Would it not make more sense to change these to <integer> and <float> to
> more correctly indicate in error messages which number type was used?
> Or perhaps just change the integer one and leave floating as <number>?
Actually, those formats are never used (numbers are shown as themselves,
like '45'), but that is not very clear in the code. We will correct that.
-- Roberto