[plt-dev] macro error messages

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Mon Mar 29 17:06:00 EDT 2010

Can these error messages be reviewed as well?

On 03/26/2010 03:55 PM, Jon Rafkind wrote:
> Can this error message
>
>   illegal use of syntax
>
> be changed to
>
>   illegal application of a transformer. transformers must be functions 
> that accept one argument.
>
> To reproduce this error use this code:
>
> (define-syntax (foo a b c) #'1)
> (foo)
>
> There is only one change to be made in eval.c line ~6284
> -----
>
> Also I would like to change this error
>
>   identifier used out of context
>
> But I'm not exactly sure what to change it to.
>
> Reproduce it with:
>
> (define-syntax (foo stx)
>   (let ([x 1])
>     #'x))
> (foo 2)
>
> compile: identifier used out of context in: x
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-dev



Posted on the dev mailing list.