lua-users home
lua-l archive

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



But that ignores my point: should the documentation say:

The length of a table t is defined to be any integer index n such that rawget(t,n) is not nil and rawget(t,n+1) is nil

rather than

The length of a table t is defined to be any integer index n such that t[n] is not nil and t[n+1] is nil

?

I'd say, unless # is changed to respect metamethods, yes.