[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Lua5.2] __len meta-method has two operand?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 13 Oct 2011 09:26:43 -0300
> I have modified my code to support this undocumented 'feature'.
It is not undocumented (although it is not listed in the incompatibility
For the unary - and # operators, the metamethod is called with a
dummy second argument. This extra argument is only to simplify Lua's
internals; it may be removed in future versions and therefore it is
not present in the following code. (For most uses this extra argument