News for hackers. Stuff that matters.
Re:Exceptions in C with Longjmp and Setjmp by malkia on Sunday March 25, 2012 @03:19AM (#3751952)
If you have some C++ code linked, and use RAII (http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initial...) then you won't have the destructors of the objects in the stack getting called. For example if you had a profiling kind of marker, that relies on C++ (instead of begin() end() kind of thing).
Re:Exceptions in C with Longjmp and Setjmp by apaprocki on Sunday March 25, 2012 @08:01AM (#3752357)
Similarly, jumping forward over C++ objects declared on the stack (also when using goto) will skip their construction.