Can someone explain why this macro expands without error in a module
but not in the REPL?

(define-syntax (m stx)
 (syntax-case stx ()
   [(_ x)
    (with-syntax ([(y) (generate-temporaries (syntax (x)))])
      (syntax (define (y) y)))]))

> (m q)
compile: unbound identifier (and no #%top syntax transformer is bound) in: q1
_________________________________________________
  For list-related administrative tasks:
  http://list.cs.brown.edu/mailman/listinfo/plt-dev

Reply via email to