Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

libpng

Name: Anonymous 2018-03-21 15:18

setjmp to implement exceptions in C? What the fuck? Actually the entire API is a gigantic clusterfuck. Jesus Christ why does anybody use this shit?

Name: Anonymous 2018-03-22 14:40

>>9
The problem is that you don't get stack unwinding with setjmp/longjmp. Other non-GCed languages like C++ and Rust have stack unwinding and RAII so you don't leak something if your function throws an exception/panic!s.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List