lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Yet, 1-based arrays always make me rage.  It's never going to change, so
> when I use Lua, I have to value the benefits of using Lua higher than
> the pain this causes.

Well, you could just patch the functions in table to assume 0 as the
base index, write your numeric for's as starting from 0 and either
refrain from using the {1,2,3} constructor or just write is as
{[0]=0,1,2}