top | item 42615994

(no title)

scott_s | 1 year ago

Look at the Linux kernel. It uses gotos for exactly this purpose, and it’s some of the cleanest C code you’ll ever read.

C++ destructors are great for this, but are not possible in C. Destructors require an object model that C does not have.

discuss

order

No comments yet.