[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: python like syntax for lua
- From: Gustavo Niemeyer <niemeyer@...>
- Date: Fri, 13 Jun 2003 16:50:32 -0300
> >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