[plt-scheme] current-exception-handler

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Mar 25 04:04:11 EST 2003

Boker Tov,

Is there any reason for requiring `current-exception-handler' to
escape?  Without this restriction, it would have been possible to play
cute games like making (/ foo 0) return +inf.0 or -inf.0, making
references to unbound variables create globals (so the set! on
undefined variables could be done in Scheme), or my favorite -- catch
an exn:arity for not enough variables, and create a closure so
something like (map cons) returns the Right Thing.

BTW#1: is in intentional that (/ 0 0.0) returns 0?

BTW#2: if continuation marks were mutable, wouldn't they be the same
       as parameters?

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.