lua-users home
lua-l archive

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


Doug Rogers wrote:
Roberto Ierusalimschy wrote:
I disagree. In my point of view, there is no sensible semantics for #t
when the table has holes.
Yes, I understand that completely. I still think it makes more sense for ipairs() to depend on something guaranteed to stop at the first nil rather than on #t - something that has no sensible semantics.

Sorry about that - it sounds unkind that way. I meant 'in the case where #t has no sensible semantics, I would rather have ipairs() stop at the first nil.'

Doug