Also, I don't seem to have recorded this anywhere, but I recall that setting
the syntax-property 'not-free-identifier=? helped with this or a related
problem regarding syntax-properties across module boundaries.
> I can wrap the property around the target identifier, but the syntax property
> doesn't stick:
>
> (provide (rename-out [mb #%module-begin]))
> (define-syntax mb (make-rename-transformer (syntax-property
> #'other-module-begin 'foo "bar")))
> (define-syntax other-module-begin (λ (stx) #'foo))
I'm making a #%module-begin macro, but I want to delegate it to an existing
one.
OK, let's start with a rename transformer:
(provide (rename-out [mb #%module-begin]))
(define-syntax mb (make-rename-transformer #'other-module-begin))
(define-syntax other-module-begin (λ (stx) #'foo))
That
3 matches
Mail list logo