3 ms·
"The main change in Lua 5.3.0 is support for integers."
by bsg75 13y ago
"The main change in Lua 5.3.0 is support for integers."
- silentbicycle 13y agoLua has always supported integers, as a compile time setting. Instead of having a full numeric tower, it has a LUA_NUMBER type that can be changed (doubles, by default), and also makes adding new numeric types at runtime (such as libGMP bignums) easy via metatables and dynamic linking. While this may seem strange, keep in mind that Lua is designed for scripting code in another language. It tries to assume as little as possible.