[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (rc2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 26 Nov 2011 11:52:26 -0200
> 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] http://lua-users.org/lists/lua-l/2011-06/msg01386.html
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'
field.)
-- Roberto