This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Macro-generated define ignored?


From: Per Bothner <per@bothner.com>
Subject: Re: Macro-generated define ignored?
Date: Thu, 10 Oct 2013 13:41:04 -0700

> This is an example of the power and the mystery of "macro hygiene".
> In this case there is an 'a' that is local to the syntax-rules,
> and there is an 'a' at the top-level scope.  These are distinct
> scopes,
> so the reference to 'a' at top-level does not "see" the definition
> of 'a' generated by the macro.

Thank you for your explanation.

Is it accidental that the test script with the command line option
"--script" works as "expected"?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]