I try to make a macro, that expands to the require form. I put in test1.rkt ``` #lang racket/base (provide ok) (define ok 1) ```
I put in test.rkt ``` #lang racket (define-syntax (req1 stx) (syntax-case stx () [(_ x) #'(require x)])) (define-syntax (req2 stx) (syntax-case stx () [(_ (x y)) #'(require (x y))])) (req2 (file "test1.rkt")) ok ``` When I run it, I have the error: ok: unbound identifier If I change `req2` to `require` or to `req1`, then it returns 1 as should. What's wrong with (_ (x y)) pattern ? -- 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/af6dcad0-69ff-406f-8183-dc691d302a5eo%40googlegroups.com.