On Sat, Mar 7, 2009 at 11:24 PM, Eduardo Cavazos <[email protected]> wrote:
>
> In this particular case, like this:
>
>    (XSetErrorHandler xerrorhandler)

If you say

(XSetErrorHandler (location xerrorhandler))

does it work, then?

>
> But ideally, the API should work such that you can do flexible stuff like:
>
>    (XSetErrorHandler (lambda (dpy ev) ...))
>
> I.e. pass arbitrary callbacks at runtime.
>

Sorry, currently not possible, as the callback wouldn't have a continuation
to return to (invoking C code leaves the CPS context. The continuation
is stored, but not externally accessible).


cheers,
felix


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to