From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19358 invoked by alias); 10 Oct 2013 23:41:23 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 19349 invoked by uid 89); 10 Oct 2013 23:41:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: meguro.gcd.org Received: from meguro.gcd.org (HELO meguro.gcd.org) (163.43.176.212) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Thu, 10 Oct 2013 23:41:21 +0000 Received: (qmail 12475 invoked by uid 10); 11 Oct 2013 08:41:19 +0900 Received: (qmail 3174 invoked by uid 0); 10 Oct 2013 23:40:59 -0000 Received: from unknown (HELO maczuka.gcd.org) (192.168.2.1) by 192.168.2.2 with SMTP; 10 Oct 2013 23:40:59 -0000 Received: (qmail 28637 invoked from network); 10 Oct 2013 23:40:59 -0000 Received: from unknown (HELO localhost) (192.168.2.1) by maczuka.gcd.org with SMTP; 10 Oct 2013 23:40:59 -0000 Date: Thu, 10 Oct 2013 23:41:00 -0000 Message-Id: <20131011.084059.437132900.kaz@maczuka.gcd.org> To: kawa@sourceware.org Subject: Re: Macro-generated define ignored? From: Ito Kazumitsu In-Reply-To: <525710E0.9080202@bothner.com> References: <20131011.000339.322954493.kaz@maczuka.gcd.org> <525710E0.9080202@bothner.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-q4/txt/msg00013.txt.bz2 From: Per Bothner 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"?