lua-users home
lua-l archive

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

> My proposal [1] was that table.pack should set __len metamethod
> instead of returning the value or setting "n" field.
> Wouldn't it be less risky ?
> [1]

It is more tricky. We think that 'n' should be something explicit.
(But we may remove the extra return, as it is redundant with the 'n'

-- Roberto