[prev in list] [next in list] [prev in thread] [next in thread]
List: lua-l
Subject: Re: state of the Lua nation on resource cleanup
From: Javier Guerra Giraldez <javier () guerrag ! com>
Date: 2009-01-26 13:02:19
Message-ID: 200901260802.20212.javier () guerrag ! com
[Download RAW message or body]
Mark Hamburg wrote:
> * How expensive is it to generate the closures that this sort of style
> promotes?
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-
Lua objects.
--
Javier
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic