From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith Thompson Newsgroups: gmane.emacs.help Subject: Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter Date: Sat, 20 Oct 2007 19:30:15 -0700 Organization: None to speak of Message-ID: References: <1192913158.922454.108100@k35g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192953151 24573 80.91.229.12 (21 Oct 2007 07:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2007 07:52:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 21 09:52: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 1IjVbq-0008R5-Pn for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Oct 2007 09:52:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjVbj-0000Cx-9o for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Oct 2007 03:52:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!post02.iad01!roadrunner.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.lang.c,comp.lang.c++ User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:26NiYdksqj192qxqOSvrx1FkJpY= Original-Lines: 37 Original-NNTP-Posting-Host: 75.80.183.54 Original-X-Complaints-To: abuse@rr.com Original-Xref: shelby.stanford.edu gnu.emacs.help:153153 comp.lang.c:827780 comp.lang.c++:954223 X-Mailman-Approved-At: Sun, 21 Oct 2007 03:50:32 -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:48659 Archived-At: gnuist006@gmail.com writes: > I have some code like this: > > (if (test) > (exit) > (do something)) > > > or > > (if (test) > ( do something) > (exit)) That's Lisp, yes? Saying so would be good, since we naturally assume that anything posted to comp.lang.c is C. > Various levels of nestings. > > I have several questions, basic to sophisticated. > > (1) What is the lisp equivalent idiom for (exit) as in bash or > in C. You're expecting C programmers to know what (exit) does in Lisp? [snip] > I therefore take the liberty to crosspost in C and C++ groups. That's rarely a good idea. -- Keith Thompson (The_Other_Keith) kst-u@mib.org San Diego Supercomputer Center <*> "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"