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 <>:
> > 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:
> 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).