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: Marius Vollmer
Subject: Re: Line/column numbers in user supplied exception handlers
Date: 13 Jul 2001 01:31:33 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Neil Jerram <address@hidden> writes:

> 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?

Yes, if one wants to emulate the old behavior.

> It doesn't seem very pretty.  Still, I guess that's why we have
> define-syntax.

Yep.



reply via email to

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