[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: anti...require?
- From: RJP Computing <rjpcomputing@...>
- Date: Sat, 31 Jan 2009 13:30:20 -0500
On Sat, Jan 31, 2009 at 11:33 AM, Luiz Henrique de Figueiredo <email@example.com> wrote:
> if there's no other references, Lua will GC module table. so you canYou cannot set __gc for tables. But you can say use a udata as upvalue for
> set your own GC handler and do necessary cleanup.
all functions registered in the module and then clean up when that udata
I have also thought about what to do in this situation and I am still learning these tricks. Any examples would be very helpful. Thanks.