It would be really usefull to me to have a hook for when a function was declared in Lua. Something like: function declarefunction(source) ... end setfunctionmethod(declarefunction) Steve