Hi Andy,

Thanks for the hand-holding! I was struggling.


> Rebinding define-syntax lexically should be possible with let-syntax or
> something like that, but I think there might be bugs with (define-syntax
> foo bar).

Whaddya know!  The following actually works quite nicely:

(let-syntax ((canonical-define-syntax (syntax-rules () ((_ keyw expr)
(define-syntax keyw expr)))))
  (canonical-define-syntax foo (syntax-rules () ((_) (display foo)))))


Regards,
Julian


Reply via email to