[racket] ok what's wrong there 'syntax-rule' evaluating its operand (??)
Hi Thomas
IIUC you get an error with your original syntax-rules version because
syntax-rules (and syntax-case and syntax-parse) is hygienic by default. In
this case think of table-author etc. being renamed inside the macro to
avoid clashing with variables defined in the calling code. Hence the
undefined error in the calling code.
You *want* and expect it to be defined by the macro, but the default
behavior says otherwise, and needs to be explicitly over-ridden.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150115/08abc49c/attachment.html>