News for hackers. Stuff that matters.
Re:A Defer Mechanism for C by skohan on Monday December 14, 2020 @05:43PM (#25424366)
Is it actually a lambda, or is it just essentially appending statements to the end of the scope?
Re:A Defer Mechanism for C by anfilt on Monday December 14, 2020 @08:36PM (#25425984)
that depends for instance you can safely call free on NULL so you could just append.

However, for some things you can only free/return resources if you successfully created that resource. At which point you would need to use something like a stack.