[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Lua5.2] __len meta-method has two operand?
- From: Patrick Rapin <toupie300@...>
- Date: Thu, 13 Oct 2011 10:24:30 +0200
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