lua-users home
lua-l archive

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


On Thu, 19 Oct 2000, Rob Kendrick wrote:

> In message <Pine.BSO.4.21.0010191007130.9656-100000@css.tuu.utas.edu.au> you
> wrote:
> 
> > Out of curiousity...
> > 
> > > c={1,3} print(c[0])
> > nil
> > > print(c[1])
> > 1
> > > print(c[2])
> > 3
> > > 
> > 
> > Why does table indexing begin at 1 and not zero?  I guess this is just a
> > convention, but I've become accustomed to zero based arrays :)
> 
> Thats something I found had to get used to, but I did :)

Fair enough :)