[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 9 Jul 2013 10:37:42 -0300
> is Lua still write in the subset of C89 and C++03?
Yes. If you compile with LUA_ANSI defined, it will not use long long.
> but the issue is the integer wide of Lua: can Lua use different standard
> integer on different system?
Sure. The idea is that the default would be 64-64, but restricted systems
probably will prefer 32-32. (Moreover, systems with no 64-bit integers
at all can use either 32-32 or 32-64).
Currently, the problem is even worse, as many people use Lua without
floating-point numbers. Mostly, we just ignore those uses (it is not
"official" Lua) and pretend the problem does not exist. We hope the
32-32 option will allow many programmers in embedded systems to have
a non-standard but officialy supported version of Lua, with 32-bit
integers for performance and floating-point numbers when necessary.