[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Probably bug in implementation of numerical constant parsing
- From: liam mail <liam.list@...>
- Date: Mon, 17 Sep 2012 14:45:07 +0100
On 17 September 2012 14:32, Egor Skriptunoff <email@example.com> wrote:
> This string causes "malformed number" error:
> It seems that lexer does not know that two dots are never contained in
> numerical constant.
> IMHO, correct parsing of numerical constant should stop before
> concatenation operator.
Regardless of if this is considered a bug or not could you explain in
what situation you would use such an operation?
You are turning what should be a compile time operation (const string
and const number) into a runtime operation.
print '64KB' v's print(64 ..'KB')