3 ms·
hmm. why are Lua arrays 1-index based?
by dingxiong 3y ago
hmm. why are Lua arrays 1-index based?
- MathMonkeyMan 3y agogood enough for Rome
- nmz 3y agoBecause arrays start at 1, offsets start at 0
- defrost 3y agoArrays are just a sequence of objects. Indexes (traditionally) start at 1, offsets (measures from base) obviously start from zero.