lua-users home
lua-l archive

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


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?