Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bsder
· 10y ago · 0 comments
0-index. I tried to like Lua, but indexing from 1 is just too painful when you have to talk to C.
Comments
[–]
GadgetJax
10y ago
In times like that, I would just assume the array size is +1, and ignore the first C Zero position. It's a pain but just setup something once and its done.
[–]
bsder
OP
10y ago
No, it's not. See here:
http://lua-users.org/wiki/CountingFromOne
I made a comment on that wiki
MOONS
ago, and it still holds.