[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bug in lexer
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 11 Dec 2005 17:15:47 -0200
> Lua lexer treats dot `.' as separator. But relies (by default) on
> strtod() for converting, and thus if your ``local'' separator is `,',
> you are unable to compile the following sample program:
This will be fixed in Lua 5.1. (The basic idea is as follows: if a
convertion fails, Lua tries again replacing the decimal point with the
locale decimal separator. It also stores this new decimal separator
to avoid repeated failures.)
-- Roberto