lua-users home
lua-l archive

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


On Sat, 31 Jul 2010 18:42:01 -0400, Dylan Petonke <dylanpetonke@gmail.com> wrote:

Changes since Lua 5.1 says:
 >
 >     ipairs now goes until #t.
 >

work1 through work3 had a check against luaL_len, but that has been removed. ipairs in work4 behaves identically to the 5.1 version. (with the exception of returning nil in place of nothing)

Is the doc wrong or the code?



I believe the doc is wrong, since the thinking was that since ipairs is being deprecated there was no reason to also change its functionality.