lua-users home
lua-l archive

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


Dibyendu,

> I think you are saying that if a variable is marked 'toclose' and has
> a __toclose() method then Lua must _guarantee_ the execution of the
> __toclose() method when the variable goes out of scope, regardless of
> GC.

Quite close. I would also expect the guarantee that the object isn't finalized (e.g. its __gc metamethod hasn't run) by the time __close is called. Just want to make this explicit. And yes, I think there's nothing out of the ordinary in what I'm asking as well, just a confirmation of this in the manual would be sufficient. Thanks for your reply!

Best regards,

--
DoubleF