[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) |
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 <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"
- How to exit out of a function ? what is try-catch-throw in terms of Program Counter, gnuist006, 2007/10/20
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, gnuist006, 2007/10/20
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Alf P. Steinbach, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter,
Keith Thompson <=
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Kenny McCormack, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Malcolm McLean, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Kenny McCormack, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, santosh, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Malcolm McLean, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Kenny McCormack, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, santosh, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Richard Heathfield, 2007/10/21
- Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Mark McIntyre, 2007/10/22
Re: How to exit out of a function ? what is try-catch-throw in terms of Program Counter, Jim Langston, 2007/10/21