From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alf P. Steinbach" Newsgroups: gmane.emacs.help Subject: Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter Date: Tue, 23 Oct 2007 19:14:39 +0200 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <13hsas71j3g080c@corp.supernews.com> References: <1192913158.922454.108100@k35g2000prh.googlegroups.com> <1193158478.891306.149890@v23g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193161549 22216 80.91.229.12 (23 Oct 2007 17:45:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2007 17:45:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 23 19:45:50 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IkNp1-0001GZ-PC for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Oct 2007 19:45:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkNot-0004dr-Hx for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Oct 2007 13:45:35 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tethys.csu.net!nntp.csufresno.edu!sn-xt-sjc-02!sn-xt-sjc-06!sn-post-sjc-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.lang.c,comp.lang.c++ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0 In-Reply-To: <1193158478.891306.149890@v23g2000prn.googlegroups.com> Original-X-Complaints-To: abuse@supernews.com Original-Lines: 30 Original-Xref: shelby.stanford.edu gnu.emacs.help:153239 comp.lang.c:828353 comp.lang.c++:954490 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48726 Archived-At: * gnuist006@gmail.com: > On Oct 23, 9:33 am, 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'. >> >> Stefan > > Stefan, let me thank you for what seems to me to be the correct > concept. > I searched this whole thread in google for setjmp and YOU are the only > one who mentioned it. Uh, have you plonked me, then? I think that my reply was the very first reply in the thread. I suggest you read that article again, because it contains some important details not mentioned by Stefan et.al. - Alf -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?