[racket] Metaprogramming with scheme

From: Valeriya Pudova (valery at digitalchile.net)
Date: Wed Jun 23 00:39:23 EDT 2010

> > (with-input-from-file "foo.ss"
> > (lambda ()
> >    (parameterize ([error-display-handler (lambda (name . stuff)
> > (printf "Got ~a ~a\n" name stuff))])
> >      (eval-syntax (read-syntax 'foo.ss)))))

Last quoestion. Is there any way  to define error-display-handler to 
printout the back trace even if there are default exception case?

(define (foo a b) (+ a b))
(+ a1 "2")
=> producece exception and error-display-handler extract and print the 
back trace

-
Val.


Posted on the users mailing list.