[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: question: userdata cross references ?
- From: Peter Cawley <lua@...>
- Date: Fri, 18 Dec 2009 22:21:32 +0000
On Fri, Dec 18, 2009 at 10:06 PM, Francesco Abbate <gslshell@gmail.com> wrote:
> Does this make sense ? Is there a more simple/obvious solution to my problem ?
Userdata can currently have individual environment tables, which have
no defined usage. What is wrong with using this table to store
references to other userdata? Your hypothetical lua_adduserdataref
function could then be implemented via lua_getfenv and lua_rawset.