[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can't pass a struct by value to LuaJIT FFI varargs function?
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 31 Jan 2011 15:01:42 +0200
On Mon, Jan 31, 2011 at 2:56 PM, Mike Pall <email@example.com> 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.