From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.user Subject: Re: Catching Date: Mon, 22 Feb 2010 14:50:29 +0100 Message-ID: <04AFFFEB-83D1-42A7-B20B-19BAF97A0ECB@math.su.se> References: <87vddp1k2l.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1266846710 11802 80.91.229.12 (22 Feb 2010 13:51:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 13:51:50 +0000 (UTC) Cc: guile-user@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 22 14:51:46 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 1NjYhN-0001Sb-Qc for guile-user@m.gmane.org; Mon, 22 Feb 2010 14:51:46 +0100 Original-Received: from localhost ([127.0.0.1]:55788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjYhN-0004kS-5O for guile-user@m.gmane.org; Mon, 22 Feb 2010 08:51:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjYgE-0004cW-2D for guile-user@gnu.org; Mon, 22 Feb 2010 08:50:34 -0500 Original-Received: from [140.186.70.92] (port=40461 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjYgD-0004cC-9m for guile-user@gnu.org; Mon, 22 Feb 2010 08:50:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjYgC-0000BF-Jp for guile-user@gnu.org; Mon, 22 Feb 2010 08:50:33 -0500 Original-Received: from pne-smtpout1-sn1.fre.skanova.net ([81.228.11.98]:62980) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjYgC-0000B9-EI; Mon, 22 Feb 2010 08:50:32 -0500 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by pne-smtpout1-sn1.fre.skanova.net (7.3.140.3) (authenticated as u26619134) id 4B5C64F7003DD973; Mon, 22 Feb 2010 14:50:31 +0100 In-Reply-To: <87vddp1k2l.fsf@gnu.org> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:7655 Archived-At: On 22 Feb 2010, at 14:22, Ludovic Court=E8s 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 =91catch=92 should be a thunk (a zero-argument > procedure): > > (catch 'FOO > (lambda () > (throw 'FOO "test")) > (lambda (key . args) > (display args))) Yes, sure. Thank you! Hans