3 ms·
Lua also allows floating point indices. In fact, any value can be an index into a table. That means any number, string, True/False, function reference, thread (
by bdowling 3y ago
Lua also allows floating point indices. In fact, any value can be an index into a table. That means any number, string, True/False, function reference, thread (coroutine) reference, table reference, "userdata" reference (usually a pointer to a C object), or nil can be an index.
- bdowling 3y agoCorrection, any value except nil can be an index into a table. https://www.lua.org/manual/5.3/manual.html#2.1 https://www.lua.org/manual/5.3/manual.html#2.1