> 
> What syntax/loc would do is put the source location of the caller in the back 
> trace. It only goes one level deep though, so you're not getting the actual 
> benefit of using syntax/loc over syntax, unless the error happens in the 
> outer let expression instead of one the inner expressions.
> 

What I would really like is both,  

error at:  source, line, col in macro called from source, line col
and then the rest of the trace

I can use (build-source-location) on stx passed into the macro to get the 
caller.  Wonder if I can wrap the macro in a with-handlers that looks for 
exn:fail:syntax to get put the called from message in.


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to