|
Roberto Ierusalimschy wrote:
When a userdata has a __gc method, the first collection triggers the finalizer, but the object is still alive (because the finalizer gets it as a parameter, and may even resurect it). Only the next collection will free the object. (Java has a similar behavior.)
Oh, thanks, didn't know that (should it be mentioned in the Manual?) And why Luiz had different results then? -- Shmuel