Re: Why table does not have the __gc event?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Why table does not have the __gc event?
- From: Ben Sunshine-Hill <sneftel@...>
- Date: 2006年1月15日 21:36:12 -0800
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