From -1156709930708500239 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,765aa557d15ef5ba X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2003-04-21 10:31:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull From: google@vandevoorde.com (Daveed Vandevoorde) Newsgroups: comp.std.c++ Subject: Re: Preprocessor evolution Date: Mon, 21 Apr 2003 17:31:32 +0000 (UTC) Organization: http://groups.google.com/ Lines: 40 Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++) Message-ID: <52f2f9cd.0304210826.644c0e9@posting.google.com> References: <652361f.0304032218.6b7a67e4@posting.google.com> <3e920e1f.883270640@News.CIS.DFN.DE> <3E94D1A2.5070406@ilog.com.sg> <3e9f0d33@andromeda.datanet.hu> <843ckcnkf7.fsf@boost-consulting.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: mail2news.demon.co.uk 1050946292 22778 10.0.0.1 (21 Apr 2003 17:31:32 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 21 Apr 2003 17:31:32 +0000 (UTC) X-Received: from mulga.cs.mu.oz.au ([128.250.1.22]) by news.demon.co.uk with esmtp (Exim 4.12) id 197f8d-0005vF-00 for mail2news@news.news.demon.net; Mon, 21 Apr 2003 17:31:31 +0000 X-Received: by mulga.cs.mu.OZ.AU id DAA21126; Tue, 22 Apr 2003 03:31:28 +1000 (EST) X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f X-Path: comp-std-cpp-robomod!not-for-mail X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Delivered-To: std-c++@ucar.edu X-Newsgroups: comp.std.c++ X-NNTP-Posting-Date: 21 Apr 2003 16:26:08 GMT X-Spam-Status: No, hits=-8.4 required=5.0 tests=NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.41 Xref: archiver1.google.com comp.std.c++:18865 dave@boost-consulting.com (David Abrahams) wrote: > comp.std.c++_2003-04-20@nmhq.net (Niklas Matthies) writes: > > > Hmm... Does that mean that for every exported macro, the preprocessor > > remembers its "closure", and expands the macro within that closure? > > Like in: > > > > #< > > #define X 5 > > #define FIVE X > > #export FIVE > > #> > > > > #< > > #define X 6 > > #define SIX X > > #export SIX > > #> > > > > #define X 7 > > > > int five = FIVE; // initialized to 5 > > int six = SIX; // initialized to 6 > > Yes, that was the conclusion that the evolution working group came to > in Oxford. I'm afraid not. The only similar conclusion was that while expanding FIVE (or SIX), the #in filter would not play. However, there is no change in the macro lookup rules. Daveed --- [ comp.std.c++ is moderated. To submit articles, try just posting with ] [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]