View Single Post
  #107 (permalink)  
Old 12-06-2009, 07:37 PM
Richard
Guest
 
Posts: n/a
Default Re: Why do some code bases don't use exceptions?

[Please do not mail me a copy of your followup]

"dragan" <spambuster@prodigy.net> spake the secret code
<_koSm.35491$kY2.22472@newsfe01.iad> thusly:

>> No. longjmp/setjmp is not related to exceptions.

>
>Yes, it is. It was an "advanced" EH technique in C and exceptions model that
>basic behavior. That's why C++ exceptions are "derived" from that technique.


I disagree. It is the weaker of the two (setjmp/longjmp vs. C++
exceptions), not the more advanced. C++ exceptions are in no way
derived from setjmp. setjmp/longjmp is essentially a non-local goto.
It is not an exception, nor does it unwind the stack, it simply
overwrites the stack pointer.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
Reply With Quote