[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Lua5.2] __len meta-method has two operand?
- From: Xavier Wang <weasley.wx@...>
- Date: Thu, 13 Oct 2011 16:27:33 +0800
2011/10/13 Patrick Rapin <toupie300@gmail.com>:
> This is not a bug, but a optimization feature.
> It has already be discussed in that thread [1]
> The answer from Roberto [2] is that this hack enables to use the same
> machinery for all metamethods.
>
> [1] http://lua-users.org/lists/lua-l/2010-10/msg00783.html
> [2] http://lua-users.org/lists/lua-l/2010-10/msg00799.html
>
>
Okay, anyway :(
I have modified my code to support this undocumented 'feature'.
thx.