This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Macro-generated define ignored?
- From: Ito Kazumitsu <kaz at maczuka dot gcd dot org>
- To: kawa at sourceware dot org
- Date: Fri, 11 Oct 2013 08:40:59 +0900 (JST)
- Subject: Re: Macro-generated define ignored?
- Authentication-results: sourceware.org; auth=none
- References: <20131011 dot 000339 dot 322954493 dot kaz at maczuka dot gcd dot org> <525710E0 dot 9080202 at bothner dot com>
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"?