[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT FFI __gc metamethod?
- From: Mike Pall <mikelu-1102@...>
- Date: Tue, 22 Feb 2011 23:15:50 +0100
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