3 ms·
I don't think they are adding integers. According to the readme integers are now 64bit by default.
by sigzero 12y ago
I don't think they are adding integers. According to the readme integers are now 64bit by default.
- koenigdavidmj 12y agoEverything was floating-point up until now, which plays nicely with integers...but only until 2^53 or thereabouts.
- dragonwriter 12y agoSounds like another, somewhat more popular language...
- eslaught 12y agoPreviously, all Lua numbers were doubles. You could fit a 32-bit int into a double without trouble, and maybe the interpreter would even have an optimization for that internally, but at least conceptually, Lua never distinguished between floating point and integer values (e.g. type(1.4) and type(4) would both produce "number").
- astrobe_ 12y agoThere was previously a compile-time option to use integers instead of doubles.
- virtue3 12y agoyes, and it was a complete nightmare dealing with that from the C side sometimes :/... sooo much conditional type casting :(