[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
Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter
Tue, 23 Oct 2007 21:06:00 -0400
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)
>>> 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'.
Sorry, I'm reading this on gnu.emacs.help where Elisp only provides `catch'
and `throw' (no `try') and these map pretty closely to setjmp/longjmp.
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, (continued)