guile-devel
[Top][All Lists]
Advanced

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

Re: Line/column numbers in user supplied exception handlers


From: Neil Jerram
Subject: Re: Line/column numbers in user supplied exception handlers
Date: 11 Jul 2001 23:43:43 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

    Marius> I would deprecate catch/throw.

    Thomas> Neil Jerram <address@hidden> writes:

    >>  OK, now you've outflanked me!  Could you explain the big
    >> picture?

>>>>> "Thomas" == Thomas Bushnell, BSG <address@hidden> writes:

    Thomas> I think it's clear that if you have call/ec, you certainly
    Thomas> don't want to bother with catch anymore.

So (catch key thunk handler) becomes

(call/ec (lambda (cont)
           (call-with-exception-handler
             thunk
             (lambda (key1 . args)
               (if (eq? key1 key)
                   (cont (apply handler key args)))))))

??

Is this the idea?  It doesn't seem very pretty.  Still, I guess that's
why we have define-syntax.

        Neil




reply via email to

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