From: Nobody on
On Tue, 10 Aug 2010 21:44:47 -0700, JosephKK wrote:

>>Try, throw, catch exceptions is relatively new in programming.
>>
> Only over 20 years old, i was using constructs of that nature by 1987.
> Plus, i think it was standardized in "C" in 1999.

C doesn't have try/catch; that's C++ (which first appeared in 1983 but
wasn't ratified as a standard until 1998, and exceptions were one of the
last features to be reliably implemented, which meant that programmers
often avoided using them).

The only "exceptions" in C99 are floating-point exceptions, which either
set a flag or generate a signal.

You can implement the equivalent of catch/throw in C using setjmp/longjmp,
but you have to maintain your own handler stack, and there's no way to
implement "finally".