News for hackers. Stuff that matters.
Re:A Defer Mechanism for C by steveklabnik on Monday December 14, 2020 @06:32PM (#25424872)
Sure. That’s why I said “more deterministic.” But even a rare event disproves the guarantee.
Re:A Defer Mechanism for C by DougBTX on Tuesday December 15, 2020 @01:35PM (#25433349)
Sorry, I meant that the behaviour is guaranteed, not that the destructor is guaranteed to be called. So in the Rc cycle example the guarantee is that the destructor won’t be called.
Re:A Defer Mechanism for C by steveklabnik on Tuesday December 15, 2020 @06:28PM (#25436845)
Ah, then I misunderstood you, yes. My bad!