lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 1/15/06, CHU Run-min <churunmin@gmail.com> wrote:
> "Finalizers allow you to coordinate Lua's garbage collection with
> external resource management (such as closing files, network or
> database connections, or freeing your own memory). "
>

Yeah, I don't really like that wording. It really surprises me that it
isn't stated more clearly there what you can and can't expect from
__gc metamethods, and that __gc not working for tables isn't mentioned
at all (except by omission from discussions about __gc).

Ben