[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Metatables for functions
- From: David Manura <dm.lua@...>
- Date: Wed, 25 Mar 2009 22:37:19 -0400
On Wed, Mar 25, 2009 at 9:33 PM, David Manura wrote:
> On Wed, Mar 25, 2009 at 10:26 AM, Mark Hamburg wrote:
>>>> Is there any reason not to support metatables for functions?
>> I should perhaps have been more precise and said "per function metatables"
>> (defaulting back to a shared metatable for compatibility).
One workaround may be to define a global metatable that can multiplex
multiple metatables and has a standard interface for registering those
metatables.
One problem is that equality over functions is predefined and is
currently not overridable in the metatable.