lua-users home
lua-l archive

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


> I think in 5.2 will become useless for all __gc hacks since __gc must be set
> before the metatable is set.

The metatable must have a __gc field when the metatable is set,
but you may set __gc as true for instance and change it later.