lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 12/4/2010 12:50 AM, Roberto Ierusalimschy wrote:
Uh, feedback. Woof woof. The manual seems to have missed mentioning
hex floating-point literals in Section 3.1.

Unfortunately, hex floating-point literals are handled by 'strtod',
and 'strtod' supports them only in C99, while Lua assumes a C89
compiler. Specifically, Microsoft's 'strtod' does not support them :(

So, hex floating-point literals is a kind of "bonus" feature that
you get when using a C99 compiler.

Yes, obviously it'll depend on the platform. Nothing we can do about that.

IMHO if it's enabled in the lexer, it deserves to be mentioned.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia