[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to exit out of a function ? what is try-catch-throw in terms of
From: |
Victor Bazarov |
Subject: |
Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter |
Date: |
Tue, 23 Oct 2007 12:45:22 -0400 |
Stefan Monnier wrote:
>> NOTE: I am really afraid of try-catch-throw. I have never been
>> able to understand it since it does not exist in C and I can't
>> really visualize the construct in terms of C. That is what my
>
> Actually, these constructs pretty much exist in C as well: `catch' is
> called `setjmp', and `throw' is called `longjmp'.
I believe a better way would be to imagine that 'try', not 'catch',
is called 'setjmp'.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, (continued)
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Jim Langston, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Malcolm McLean, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, abhy, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Joel Yliluoma, 2007/10/23
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Stefan Monnier, 2007/10/23