> > 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. > > Is newproxy doing that ? In 5.2, yes (but it uses "false" instead of "true").