lua-users home
lua-l archive

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


CrazyButcher wrote:
> 2011/2/21 Mike Pall <mikelu-1102@mike.de>:
> > Instead create the userdata from C code and keep the cdata _inside_
> > the userdata. Cast the userdata to a pointer to your struct before
> > using it: http://lua-users.org/lists/lua-l/2011-01/msg01282.html
> 
> would you officially provide a way to create userdata with payload
> from Lua as a workaround?

Maybe. But I'm still thinking about a more convenient way to solve
the underlying problem (in LuaJIT 2.0).

--Mike