[racket] Metaprogramming with scheme

From: Valeriya Pudova (valery at digitalchile.net)
Date: Wed Jun 23 07:38:33 EDT 2010

On 23.06.2010 14:13, Noel Welsh wrote:
> On Wed, Jun 23, 2010 at 5:39 AM, Valeriya Pudova
> <valery at digitalchile.net>  wrote:
>> Last quoestion. Is there any way  to define error-display-handler to
>> printout the back trace even if there are default exception case?
> I think I don't understand the question. Every exception contains
> continuations marks, so it should be straightforward to write your own
> error-display-handler to printout the trace. Does this help?
> N.
Guess I found the answer

[error-display-handler (lambda (name . stuff)
    (for-each (lambda (e) (display e)(newline)) 
(continuation-mark-set->context (exn-continuation-marks  (car stuff))))

Thank You

Posted on the users mailing list.