From: Alan W. I. <ir...@be...> - 2011-09-12 21:32:36
|
On 2011-09-12 10:39-0700 Alan W. Irwin wrote: > On 2011-09-12 13:10+0100 Andrew Ross wrote: > >> >> Alan, >> >> Good idea. I was forgetting that you could redefine macros even after >> they had been used in further #define statements. > > Hi Andrew: > > I assume you have thoroughly tested that assumption so it must be > true, but that sure seems counter-intuitive to me, and I cannot find a > reference to it. Furthermore, K&H "The ANSI C Programming Language", > p. 89 state "subsequent occurrences of the token name will be replaced > ....", and that "subsequent" adjective seems to contradict the assumption. Oops. That reference should be to K&R (Kernighan and Ritchie). Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |