[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Add hooks for print functions like the one for allocation.
- From: Javier Guerra Giraldez <javier@...>
- Date: Mon, 28 Oct 2013 16:05:10 -0500
On Mon, Oct 28, 2013 at 4:03 PM, Paul Chavent <email@example.com> 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.