From: Hans Aberg <haberg@math.su.se>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guile-user@gnu.org
Subject: Re: Catching
Date: Mon, 22 Feb 2010 14:50:29 +0100 [thread overview]
Message-ID: <04AFFFEB-83D1-42A7-B20B-19BAF97A0ECB@math.su.se> (raw)
In-Reply-To: <87vddp1k2l.fsf@gnu.org>
On 22 Feb 2010, at 14:22, Ludovic Courtès wrote:
>> 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)))
Yes, sure. Thank you!
Hans
prev parent reply other threads:[~2010-02-22 13:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 11:09 Catching Hans Aberg
2010-02-22 13:22 ` Catching Ludovic Courtès
2010-02-22 13:50 ` Hans Aberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=04AFFFEB-83D1-42A7-B20B-19BAF97A0ECB@math.su.se \
--to=haberg@math.su.se \
--cc=guile-user@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).