lua-users home
lua-l archive

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


2010/1/9 Ignacio Burgueño <ignaciob@inconcertcc.com>:
>> 17. Documented behaviour of ipairs() is changed from "iterates until
>> *first nil*" to "traverses table length elements as defined by length
>> operator".

This is more consistent, but given how strange #t is when t has a
number of holes, it isn't necessarily more useful.  Mark's remark
about pack/unpack being paired has some relevance here: pack() must
set 'n', so why can't unpack() use it? Or ipairs?

steve d.