Post #2439221
2026-03-28 20:02 UTC
@markuslatvala@mastodon.gamedev.place I might forgotten the little Lua I knew, but I see to recall that there was a single number type, which is double, akin to JS, but perhaps there is a fast path for integers? But also that the bit-ops were somehow cumbersome, though perhaps I was just unfamiliar with them, coming from C family of languages.
Replies (1)
-
@markuslatvala@mastodon.gamedev.place 2026-03-28 21:07
@scoopr@mastodon.social In Lua 5.4 the numbers are internally double, int or uint depending on the last operation. Bitwise operators are actually pretty standard, but you obviously have to guess the underlying type. Binary buffers on the other hand are really funky as you operate them through strings.