Re:Squirrel Programming Language
by bsder on Tuesday July 12, 2016 @06:15PM
(#12082632)
0-index. I tried to like Lua, but indexing from 1 is just too painful when you have to talk to C.
[ Parent
| on HN ]
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.
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.