lua-users home
lua-l archive

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

On Mon, Oct 28, 2013 at 4:03 PM, Paul Chavent <> wrote:
> On 10/27/2013 08:48 PM, Tom N Harris wrote:
>> What's wrong with `_G.print = myprint` ?
> Nothing wrong. But a lower level hook allow to specify user data (that can
> be used to pass a class pointer in my case).

remember that in Lua functions are full closures, even when implemented in C.