Re:Emulating exceptions in C: a case study
by anarazel on Thursday August 27, 2015 @11:06AM
(#10129838)
I've seen longjmp used in a number of fairly large projects, with diverse teams. E.g. postgresql.
If abstracted away they don't necessarily cause that many problems. Sure, it'd be nicer if there were a better alternative, but often there's just none. And no C++ isn't always an alternative. Many older platforms have only horribly bad C++ compilers, certainly not ones where you want to rely on exception handling.
If abstracted away they don't necessarily cause that many problems. Sure, it'd be nicer if there were a better alternative, but often there's just none. And no C++ isn't always an alternative. Many older platforms have only horribly bad C++ compilers, certainly not ones where you want to rely on exception handling.