[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Hooking into garbage collection
- From: Sean Conner <sean@...>
- Date: Fri, 27 Dec 2013 22:43:27 -0500
It was thus said that the Great Choonster TheMage once stated:
> On 28 Dec 2013 13:43, "Sean Conner" <sean@conman.org> wrote:
> >
> > Doing this for Lua 5.1 is not quite as easy, as you need to use a userdata
> > object (say, a pointer to int) instead of a Lua table, but the concept is
> > the same.
> >
> > -spc
> >
> >
>
> One possible solution for Lua 5.1 is to use the undocumented newproxy()
> function [1] to create your userdata object. I'm not at my computer at the
> moment so I can't be sure, but I think LuaJIT also supports it.
>
> [1] http://lua-users.org/wiki/HiddenFeatures
So it does.
-spc (My mistake)