News for hackers. Stuff that matters.
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.
Re:Squirrel Programming Language by GadgetJax on Tuesday July 12, 2016 @11:26PM (#12083719)
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.
Re:Squirrel Programming Language by bsder on Wednesday July 13, 2016 @02:16PM (#12088410)
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.