Re: Can't pass a struct by value to LuaJIT FFI varargs function?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Can't pass a struct by value to LuaJIT FFI varargs function?
 
- From: steve donovan <steve.j.donovan@...>
 
- Date: 2011年1月31日 15:01:42 +0200
 
On Mon, Jan 31, 2011 at 2:56 PM, Mike Pall <mikelu-1101@mike.de> wrote:
> Probably. But I still have no good solution that avoids keeping
> callbacks alive forever (slowly chewing up memory) without
> resorting to manual lifetime management.
Yes, Wolfgang Oertl in his GTK bindings requires you to explicitly
declare callback objects in some cases where he can't manage their
lifetime for you. Safe, but sure.
steve d.