lua-users home
lua-l archive

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



On Dec 11, 2014, at 8:53 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

We'd also like feedback on the documentation:
http://www.lua.org/work/doc/readme.html
http://www.lua.org/work/doc/contents.html
http://www.lua.org/work/doc/manual.html

In particular, note that the index in the contents now lists environment
variables, C entry points to the standard library, and constants.
http://www.lua.org/work/doc/contents.html#index


Regarding ipairs() docs (6.1 Basic Functions). The docs state:

“… will iterate over the pairs (1,t[1]), (2,t[2]), ..., up to the first integer key absent from the table.”

Would this be better as:

“… will iterate over the pairs (1,t[1]), (2,t[2]), ..., up to the first integer key which has a value of nil.” ?

Which seems clearer to me both for the raw and __index()  metamethod cases.

—Tim