[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: state of the Lua nation on resource cleanup
- From: Javier Guerra Giraldez <javier@...>
- Date: Mon, 26 Jan 2009 08:02:19 -0500
Mark Hamburg wrote:
> * How expensive is it to generate the closures that this sort of style
I'd guess that the closures are nothing compared with the file handler itself.
> * Are the cases where we need to do this sufficiently rare that they
> are simply the job of the library writer or are they going to be
> common enough and ad hoc enough that library writers are unlikely to
> cover them all?
I'd love to see a generic Lua mechanism for this; but maybe just a couple of
helping functions in the C API would make this features easy to add for
library writers. after all, finalization is mostly an issue for expensive non-