[plt-scheme] syntax identifier used out of context

From: Noel Welsh (noelwelsh at gmail.com)
Date: Thu Dec 11 03:59:34 EST 2008

bar2 is define'd, so it is bound in the evaluation environment, not
the transformation environment.  So that explains the second error.
If you want to use it in the transformer env you should
define-for-syntax it.

As for the first, I'm not sure.  But I think this code can't work as
bar2 is defined as a fn stx -> stx but it is used in the eval env, so
it won't receive stx of q but rather the actual value of q.

Hope that is correct...

On Thu, Dec 11, 2008 at 7:21 AM, Jon Rafkind <rafkind at cs.utah.edu> wrote:
> I'm wondering why I get this error from the following code. ...

Posted on the users mailing list.