|
Roberto Ierusalimschy wrote:
Agreed. The only reason #t has its undefined behavior is because it is impractical for it to iterate the table.
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.
Doug