From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Catching Date: Mon, 22 Feb 2010 14:22:42 +0100 Message-ID: <87vddp1k2l.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1266845770 6204 80.91.229.12 (22 Feb 2010 13:36:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 13:36:10 +0000 (UTC) Cc: guile-user@gnu.org To: Hans Aberg Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 22 14:36:05 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NjYFR-0000cM-Og for guile-user@m.gmane.org; Mon, 22 Feb 2010 14:22:54 +0100 Original-Received: from localhost ([127.0.0.1]:40714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjYFR-0004hT-6d for guile-user@m.gmane.org; Mon, 22 Feb 2010 08:22:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjYFL-0004ge-Sw for guile-user@gnu.org; Mon, 22 Feb 2010 08:22:47 -0500 Original-Received: from [140.186.70.92] (port=52400 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjYFL-0004gE-5m for guile-user@gnu.org; Mon, 22 Feb 2010 08:22:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjYFK-00060y-Ch for guile-user@gnu.org; Mon, 22 Feb 2010 08:22:47 -0500 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:7074) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjYFK-00060t-6g for guile-user@gnu.org; Mon, 22 Feb 2010 08:22:46 -0500 X-IronPort-AV: E=Sophos;i="4.49,518,1262559600"; d="scan'208";a="53397223" Original-Received: from laptop-147-210-128-170.labri.fr (HELO nixey) ([147.210.128.170]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 22 Feb 2010 14:22:45 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?iso-8859-1?Q?Vent=F4se?= an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Hans Aberg's message of "Mon, 22 Feb 2010 12:09:00 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7654 Archived-At: Hi, Hans Aberg 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 =E2=80=98catch=E2=80=99 should be a thunk (a zero-ar= gument procedure): (catch 'FOO (lambda () (throw 'FOO "test")) (lambda (key . args) (display args))) Thanks, Ludo=E2=80=99.