Hello,
is there something like the try-catch-Statement from Java in Common Lisp
available?
After an error, I want to realize a cleanup.
Regards
Michael
On Wed, Sep 15, 2004 at 05:06:54PM +0200, Michael H?nisch wrote:
> is there something like the try-catch-Statement from Java in Common Lisp
> available?
>
> After an error, I want to realize a cleanup.
You should take a look at chapters 5.3.29 "UNWIND-PROTECT" and 9
"Conditions" of the Hyperspec [1], and chapter 16 of Practical Common
Lisp [2].
[1] http://www.lispworks.com/reference/HyperSpec/Front/index.htm
[2] http://www.gigamonkeys.com/book/
--
;;;; Matthew Danish -- user: mrd domain: cmu.edu
;;;; OpenPGP public key: C24B6010 on keyring.debian.org
Michael H�nisch <················@ascad.de> writes:
> Hello,
>
> is there something like the try-catch-Statement from Java in Common
> Lisp available?
>
> After an error, I want to realize a cleanup.
UNWIND-PROTECT
HANDLER-CASE
--
__Pascal Bourguignon__ http://www.informatimago.com/
Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we.
Michael H�nisch <················@ascad.de> writes:
> is there something like the try-catch-Statement from Java in Common
> Lisp available?
the short answer is UNWIND-PROTECT.
the long answer is (prepare to be amazed):
http://gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html
--
-Marco
Ring the bells that still can ring.
Forget your perfect offering.
There is a crack in everything.
That's how the light gets in.
-Leonard Cohen