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?
[ Parent
| on HN ]
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.