[plt-scheme] call-with-exception-handler inside with-handlers

From: Marco Maggi (marco.maggi-ipsu at poste.it)
Date: Fri Dec 21 15:29:15 EST 2007


why the form:

(with-handlers (((lambda (o)
                   #t) (lambda (exn)
                         (list 'out exn))))
      (lambda (exn)
        (list 'error exn))
    (lambda ()
      (raise 123))))

gives  me an  uncaught exception  "(error 123)"  rather than
simply returning the value  "(out 123)"?  If the explanation
involves continuations, continuation  marks or prompts: just
tell me to forget it (I don't wanna know :-).


Marco Maggi

"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"

Posted on the users mailing list.