[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: block-scope finalization
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 26 Nov 2015 15:22:18 -0200
> >2 - if its value is a table/userdata, its __close (or some other new
> >name) metamethod, if present, is called.
> What's the problem with the __gc metamethod?
As it was discussed here, you may not want to allow users to call __gc
directly. It does not seem too complex to use a diferent metamethod, and
it is simple to do __close=__gc if you want.
-- Roberto
- References:
- Re: block-scope finalization, Viacheslav Usov
- Re: block-scope finalization, Philipp Janda
- Re: block-scope finalization, Philipp Janda
- Re: block-scope finalization, Viacheslav Usov
- Re: block-scope finalization, Coda Highland
- Re: block-scope finalization, Javier Guerra Giraldez
- Re: block-scope finalization, Coda Highland
- Re: block-scope finalization, Patrick Donnelly
- Re: block-scope finalization, Roberto Ierusalimschy
- Re: block-scope finalization, tomas