lua-users home
lua-l archive

Re: Lua 5.3 Suggestion: extend lua_(get|set)uservalue() to associate userdata-to-userdata

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


On Sun, Dec 1, 2013 at 4:11 PM, Sir Pogsalot <sir.pogsalot@gmail.com> wrote:
> Currently you can only associate a lua table with a userdata through
> lua_setuservalue() -- I wish you could also associate userdata.
>
> Not sure if this isn't already possible with some other function
Psst.
It is.
You can store a userdata in a table. ;)
/s/ Adam

AltStyle によって変換されたページ (->オリジナル) /