[plt-scheme] faking exception source location

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Nov 29 19:28:35 EST 2003

You must raise a syntax exception (or read), for now. At some point, we
talked about adding a generalized form of exception that had source
location information, but we haven't gotten to it yet.

Robby

At Sat, 29 Nov 2003 19:14:12 -0500, David Herman wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> How can I fake the source location when raising an exception? I'm 
> working on a macro that may detect errors at expansion time; I want 
> DrScheme to highlight the source syntax, not the macro definition, when 
> such an error occurs. I know how to use syntax/loc et al to use the 
> source syntax location in the target syntax, but I can't figure out how 
> to give syntax location information to `raise' or any of the exception 
> structures.
> 
> Thanks,
> Dave
> 
> 



Posted on the users mailing list.