lua-users home
lua-l archive

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


> >Another hard point will be the 0-indexed stuff, if you're planning
> >to implement it at all. Lua has a special meaning for 0 in many cases.
> 
> To quote myself:
> 
>  There is exactly ONE spot in the core of Lua where this is true: the
>  parsing of constructors such as {10,20,30} . The convention of starting
>  with 1 is only enforced by the libraries, which are not part of the language.

I remember to have had some kind of problem while building a table
using the C API. That's probably the constructor stuff you mention
above.

>  http://lua-users.org/wiki/CountingFromOne

This is an interesting document. Thanks for mentioning.

-- 
Gustavo Niemeyer
http://niemeyer.net