(define-syntax (require-file stx)
  (syntax-case stx ()
    [(_ x)
     #'(require (file x))]))
doesn't work (it compiles, but doesn't import identifiers)?

(define-syntax (require-file* stx)
  (syntax-case stx ()
    [(_ x)
     #`(require #,(datum->syntax #'x (list #'file #'x)))]))
works fine.

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 

Reply via email to