On 9/28/19, Jonathan Simpson <jjsim...@gmail.com> wrote:
> It works when I change my mag-line syntax class to:
>
> (define-syntax-class mag-line
>     (pattern (line expr ...)))
>
> So removing the literal specifier on line seems to work. I'm still not sure
> why the two modules behave differently though. It seemed to work in
> expander-utils.rkt whether line was defined or not. So there must be
> something in the compilation environment that I'm missing. I'm still
> curious if anyone has a good explanation. I may hit issues with level
> further down the road as well.

(~literal X) matches an identifier that is free-identifier=? to X
If X is defined in one module but not another, you'll see different results.

That new pattern (line expr ....) might match more things than you want it to.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAFUu9R6PYznwSxttvUDsgQnC667M9w94z7Boj6r%3DskR01ewGAg%40mail.gmail.com.

Reply via email to