One problem with the proposed defer there is that it has no way to interact with stack unwinding, which is part of the platform ABIs for handling exceptions. Maybe some alternative syntax, such as "defer_finally" could make the defer block act as both a regular defer block, and also explicitly add that block to the stack unwinding chain.
kazinator|1 year ago
VLA's, inline, variadic macros, ...
More recently, they gaffed by making alignment specification not a type attribute but, get this, a storage class specifier. Ouch!
Dwedit|1 year ago
One problem with the proposed defer there is that it has no way to interact with stack unwinding, which is part of the platform ABIs for handling exceptions. Maybe some alternative syntax, such as "defer_finally" could make the defer block act as both a regular defer block, and also explicitly add that block to the stack unwinding chain.
unknown|1 year ago
[deleted]
tredre3|1 year ago
cozzyd|1 year ago