4 ms·
You can override it. LuaJIT allocates the memory from the 0 index.
by justincormack 14y ago
You can override it. LuaJIT allocates the memory from the 0 index.
- to3m 14y agoI think ordinary Lua does the same? - this was all a while ago now - but the result isn't arraylike, because the indexes aren't starting from zero. Of course, you can keep on top of the indexes yourself, because tables are tables, and you can use whatever indexes you like and/or track the size by hand... but you might then feel that Lua isn't really being much help here...