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
|