[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Metatables for functions
- From: Sam Roberts <vieuxtech@...>
- Date: Tue, 24 Mar 2009 17:40:35 -0700
On Tue, Mar 24, 2009 at 4:59 PM, Mark Hamburg <mark@grubmah.com> 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... :-)
Sam