lua-users home
lua-l archive

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



All feedback welcome. Thanks.
--lhf

 
Lua 5.4.0 (work1)  Copyright (C) 1994-2018 Lua.org, PUC-Rio
> {nil, nil, nil, nil}
table: 02F50CC0
> for k, v in ipairs({nil, nil, nil}) do print(k, v) end
> for k, v in pairs({nil, nil, nil}) do print(k, v) end
1       nil
2       nil
3       nil
>


when open LUA_NILISTABLE, ipairs can not find any values, but pairs could, maybe ipairs should be aware undef but not nil, either? 


--
regards,
Xavier Wang.