The program:

#lang racket

(define-syntax (exp stx)
  (define a (local-expand (cadr (syntax->list stx)) 'expression '()))
  (define one (cadr (syntax->list a)))
  (displayln (list one (syntax-original? one)))

(exp 1)

prints `(#<tmp.rkt:10:5 1> #f)`.

However if I open the macro stepper in and step to the end, the macro
stepper shows the corresponding `1` as `original?: #t`.

Why are these different?


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 
For more options, visit

Reply via email to