[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Language lawyer corner: object liveness
- From: Sergey Zakharchenko <doublef.mobile@...>
- Date: Thu, 6 Jun 2019 17:02:07 +0000
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
- References:
- Language lawyer corner: object liveness, Sergey Zakharchenko
- Re: Language lawyer corner: object liveness, Thijs Schreijer
- Re: Language lawyer corner: object liveness, Sergey Zakharchenko
- Re: Language lawyer corner: object liveness, Sergey Zakharchenko
- Re: Language lawyer corner: object liveness, Gé Weijers
- Re: Language lawyer corner: object liveness, Roberto Ierusalimschy
- Re: Language lawyer corner: object liveness, Sergey Zakharchenko
- Re: Language lawyer corner: object liveness, Philippe Verdy
- Re: Language lawyer corner: object liveness, Sergey Zakharchenko
- Re: Language lawyer corner: object liveness, Dibyendu Majumdar