[Scheme-reports] The SYNTAX-RULES macro phase error Andre van Tonder (03 May 2011 21:10 UTC)
Re: [Scheme-reports] The SYNTAX-RULES macro phase error Aaron W. Hsu (05 May 2011 03:01 UTC)
Re: [Scheme-reports] The SYNTAX-RULES macro phase error John Cowan (05 May 2011 08:08 UTC)

[Scheme-reports] The SYNTAX-RULES macro phase error Andre van Tonder 03 May 2011 21:10 UTC

Even if we only have SYNTAX-RULES it is possible to confuse macro phases.

It may be important for some users to know that the following is not portable.
(This kind of thing is actually not all that uncommon.)

  (define-syntax my-syntax-rules
    (syntax-rules ()
      ((_ blah) (syntax-rules ..........)))

  (define-syntax foo (my-syntax-rules ........))   ;; PHASE ERROR

This kind of thing would just work in some Scheme implementations, but others
would require MY-SYNTAX-RULES to be imported FOR EXPAND for the macro definition
of FOO to work.

Maybe WG1 could remark on this in the report.

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports