[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LUA missing lua_pushuserdata()?
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 7 Oct 2009 08:23:01 +0200
On Wed, Oct 7, 2009 at 8:14 AM, Sean Conner <firstname.lastname@example.org> wrote:
> I can easily add the lua_pushuserdata() function myself, but I just find
> it odd that it's missing from the published API.
The solution of choice would be to save the userdata in the registry
(similar to saving functions and tables) and keep the reference. Much
better than an actual global, as you observe.