help-gnu-emacs
[Top][All Lists]
Advanced

[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: Keith Thompson
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
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (gnu/linux)

address@hidden 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) address@hidden  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center             <*>  <http://users.sdsc.edu/~kst>
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]