[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Catching
From: |
Ludovic Courtès |
Subject: |
Re: Catching |
Date: |
Mon, 22 Feb 2010 14:22:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi,
Hans Aberg <address@hidden> writes:
> I seem to not get the catch handler called, when using guile
> interactively. Might you provide a small example? Something like:
> (catch 'FOO (throw 'FOO "Test") (lambda (x . xt) (display x) (display
> " . ") (display xt)))
The second argument of ‘catch’ should be a thunk (a zero-argument
procedure):
(catch 'FOO
(lambda ()
(throw 'FOO "test"))
(lambda (key . args)
(display args)))
Thanks,
Ludo’.
- Catching, Hans Aberg, 2010/02/22
- Re: Catching,
Ludovic Courtès <=