lua-users home
lua-l archive

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

On Tue, Mar 24, 2009 at 4:59 PM, Mark Hamburg <> wrote:
> Is there any reason not to support metatables for functions? Obviously the
> __call metamethod is superfluous for functions, but I could imagine uses for

Yeah, but if you define it, and have a way of getting "self" you could
do aspect oriented programming, or just hook all call/return and do
auto-wrapping of functions, or...

I'm not saying this is useful... :-)