From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Victor Bazarov" 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 12:45:22 -0400 Organization: Datemas.de http://www.datemas.de Message-ID: References: <1192913158.922454.108100@k35g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1193166930 9078 80.91.229.12 (23 Oct 2007 19:15:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2007 19:15:30 +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 21:15:31 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 1IkPDs-0001zV-7m for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Oct 2007 21:15:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkPDi-0003RZ-W0 for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Oct 2007 15:15:19 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.albasani.net!newsfeed.datemas.de!news.datemas.de!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.lang.c,comp.lang.c++ Original-Lines: 17 Original-X-Trace: news.datemas.de blA8H5nxo+vlhPxgxKbR49ksqcgCY9hwo5iSmN3vSniCb7Gf8riRTGtiUT9QxKq7xVw4x5ujJ9VZTRn85+B4YjK05abfdVK/Qe53WWgVZ1BXRd7fy78+m6suTlxh/bf0l2hzRacwlfd7RNV7ads9GjrXkoK6ddH/gWGNuPsE6pY= Original-X-Complaints-To: abuse@datemas.de Original-NNTP-Posting-Date: Tue, 23 Oct 2007 16:45:22 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-Priority: 3 X-MSMail-Priority: Normal Original-Xref: shelby.stanford.edu gnu.emacs.help:153234 comp.lang.c:828349 comp.lang.c++:954488 X-Mailman-Approved-At: Tue, 23 Oct 2007 15:12:59 -0400 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:48734 Archived-At: 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