lua-users home
lua-l archive

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


On Mon, Jan 10, 2011 at 12:15 PM, Patrick Donnelly <batrick@batbytes.com> wrote:
> Well, the inverse operation is not documented probably because it's
> easy to do yourself. Just have a light userdata pointing to the full
> userdata block address (lua_touserdata) as keys in the registry with
> the corresponding full userdata value.

I should say before someone jumps on me that you'll want a weak valued
table in the registry for this, not the registry itself, so you don't
interfere with GC.

-- 
- Patrick Donnelly