[plt-scheme] exception-handler prompt

From: Dave Herman (dherman at ccs.neu.edu)
Date: Mon Nov 13 10:47:43 EST 2006

I'm pretty sure it's never been possible to set the 
current-exception-handler mutably at top level and use it without at 
least one surrounding with-handlers. If I'm reading the error message 
correctly, in 359.x this manifests as a "missing prompt" error:

 > (define f (with-handlers ([symbol? (lambda (x) 42)])
 > (current-exception-handler f)
 > (raise 'boo!)
exception raised by exception handler: abort-current-continuation: 
continuation includes no prompt with the given tag: 
#<continuation-prompt-tag>; original raise called (with non-exception 
value): boo!

What is the rationale behind not having an implicit, top-level prompt 
for exception handlers?


Posted on the users mailing list.