logoalt Hacker News

zabzonktoday at 12:07 PM1 replyview on HN

You can do a lot of horrible things with setjmp and friends. I actually implemented some exception throw/catch macros using them (which did work) for a compiler that didn't support real C++ exceptions. Thank god we never used them in production code.

This would be about 32 years ago - I don't like thinking about that ...


Replies

gpderettatoday at 6:37 PM

GCC still uses sj/lj by default on some targets to implement exceptions.