Hi all:
I'm trying to trigger an action at script exit, similar to Perl's "END
{...}" construct.
After a little searching I've stumbled across "add-hook! exit-hook
...", but for the life of me I can't seem to get it to do what I want.
Here's a taste of what I'm looking for:
(define foo (lamb
On Sun, Mar 2, 2008 at 11:25 AM, Ludovic Courtès <[EMAIL PROTECTED]> wrote:
> One possibility is to catch the `quit' exception:
>
> guile> (catch 'quit
>(lambda ()
> ;; the function that may `exit'
> (exit 1))
>(lambda (key . args)
>
On Mon, Mar 3, 2008 at 3:40 PM, Ludovic Courtès <[EMAIL PROTECTED]> wrote:
> No, you would want to enclose the body of your code in `catch', i.e.,
>
> (catch 'quit
> (lambda ()
>;; your code
>...)
> (lambda (key . args)
>...))
>
> Anyway, this isn't good, becau
On Tue, Mar 4, 2008 at 4:25 AM, Ludovic Courtès <[EMAIL PROTECTED]> wrote:
[snip]
> ... it assumes that the TAP module is used by
> standalone programs only, and that exactly one Guile process is used for
> each test that uses the module. If you decide to use a single process
> to evaluate all
Hi Guile users:
I have a guile issue and a scheme issue I'm hoping you can help me
with. My guile issue is that I've built a rudimentary module
(following the code in
http://www.gnu.org/software/guile/manual/html_node/Creating-Guile-Modules.html)
that I'd like to tar up and make available as a GP