lua-users home
lua-l archive

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

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

One problem is that equality over functions is predefined and is
currently not overridable in the metatable.