|
> 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
is collected.