[plt-dev] Symptom of REPL's hopelessness?

From: Casey Klein (clklein at eecs.northwestern.edu)
Date: Thu Oct 1 16:01:56 EDT 2009

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


Posted on the dev mailing list.