lua-users home
lua-l archive

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


On Wed, Oct 7, 2009 at 8:14 AM, Sean Conner <sean@conman.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.