Re:Again on 0-based vs. 1-based indexing
by lrossi on Wednesday January 20, 2021 @03:02PM
(#25851214)
You can use strings as keys. In fact, that’s how you can create objects. Also negative integers can be used as keys. But array operations will malfunction if you attempt to apply them to such a table.
Here are some examples: http://www.lua.org/pil/2.5.html and http://www.lua.org/pil/11.1.html