[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to transparently re-throw?
From: |
Keisuke Nishida |
Subject: |
Re: Is there a way to transparently re-throw? |
Date: |
Thu, 01 Mar 2001 21:34:41 -0500 |
User-agent: |
Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.96 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Thu, 01 Mar 2001 20:54:39 -0500,
Keisuke Nishida wrote:
>
> Why don't you use dynamic-wind?
>
> (catch 'foo
> (dynamic-wind
> (lambda () (init))
> (lambda () (body))
> (lambda () (cleanup)))
> (lambda (key . args)
> (do-something)))
Oops...
(catch 'foo
(lambda ()
(dynamic-wind
(lambda () (init))
(lambda () (body))
(lambda () (cleanup))))
(lambda (key . args)
(do-something)))