lua-users home
lua-l archive

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


On Fri, Jun 19, 2009 at 7:15 AM, Daniel Silverstone wrote:
> Aranha[1] uses __methindex to provide as closely compatible behaviour as
> possible, but still offer separation of methods and members.

I see this discussion before [9-10], which brings up some useful
points such as the possible need for a pcallmethod.

[9] http://lua-users.org/lists/lua-l/2004-11/msg00045.html
[10] http://lua-users.org/lists/lua-l/2004-11/msg00057.html

On Sun, Jun 14, 2009 at 1:31 AM, Mark Hamburg wrote:
> The __mcall metatable entry is basically a way to override
> this behavior. We could say that it only gets to return the
> item to call, but that seems overly restrictive.

When would returning a different first argument be useful?