guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching


From: Hans Aberg
Subject: Re: Catching
Date: Mon, 22 Feb 2010 14:50:29 +0100

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]