[racket-dev] syntax-case and stack trace

From: Casey Klein (clklein at eecs.northwestern.edu)
Date: Fri Jul 15 17:46:53 EDT 2011

On Fri, Jul 15, 2011 at 4:27 PM, Casey Klein
<clklein at eecs.northwestern.edu> wrote:
> Running the following program in DrRacket 5.1.1 highlights the `error'
> expression if debugging is enabled:
>
> #lang racket
>
> (syntax-case 'a ()
>  (_ (error 'boom)))
>
> Running the same program in 4d7584d/g doesn't highlight anything.
>
> Without the `syntax-case' around it, both versions highlight the
> `error' expression.
>
> Is this a bug? If not, is there a reliable way to associate a source
> location with a runtime error?
>

Oh, is that reliable way the `prop:exn:srclocs' property?



Posted on the dev mailing list.