[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua on Reddit again
- From: joao lobato <btnfdp.lobato@...>
- Date: Tue, 1 Feb 2011 01:02:53 +0000
> 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}