[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about AOP-like function calls interception
- From: Petite Abeille <petite.abeille@...>
- Date: Fri, 26 Jul 2013 00:07:23 +0200
On Jul 25, 2013, at 11:10 PM, Leo Romanoff <romixlev@yahoo.com> wrote:
> I'd like to ask if there is an (easy) way to intercept invocation of a normal Lua function?
local _print = print
print = function( … )
-- before...
_print( … )
-- after...
end
?!?
Out of curiosity… are you recent questions theoretical? or practical?