[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: rethinking method calls with __mcall metamethod rather than __index/__call
- From: David Manura <dm.lua@...>
- Date: Fri, 19 Jun 2009 22:59:54 -0400
On Fri, Jun 19, 2009 at 7:15 AM, Daniel Silverstone wrote:
> Aranha 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.
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?