Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site polaris.UUCP Path: utzoo!linus!philabs!polaris!herbie From: herbie@polaris.UUCP (Herb Chong) Newsgroups: net.unix-wizards Subject: Re: Is this correct action for the c compiler/preprocessor ?? Message-ID: <254@polaris.UUCP> Date: Tue, 5-Nov-85 20:46:21 EST Article-I.D.: polaris.254 Posted: Tue Nov 5 20:46:21 1985 Date-Received: Fri, 8-Nov-85 06:14:13 EST References: <8510301207.AA27158@ucbvax.berkeley.edu> <270@cornell.UUCP> <197@opus.UUCP> Reply-To: herbie@polaris.UUCP (Herb Chong) Organization: IBM TJ Watson RC Lines: 29 Summary: In article <197@opus.UUCP> rcd@opus.UUCP (Dick Dunn) writes: >Foo. Come on, folks! The relevant section of K&R is easy enough to >find--it's called "Token Replacement". It's only half a page long and not >that hard to read. Read along with me... > > Text inside a string or a character constant is not subject to > replacement. > >Get it? i disagree. K&R does not mention what happens at macro definition time. you have just described the case for macro recognition and substituion. in fact, K&R's description of the preprocessot leaves a lot to be desired, and so does the semantic definition of the language. Herb Chong... I'm still user-friendly -- I don't byte, I nybble.... New net address -- VNET,BITNET,NETNORTH,EARN: HERBIE AT YKTVMH UUCP: {allegra|cbosgd|cmcl2|decvax|ihnp4|seismo}!philabs!polaris!herbie CSNET: herbie.yktvmh@ibm-sj.csnet ARPA: herbie.yktvmh.ibm-sj.csnet@csnet-relay.arpa ======================================================================== DISCLAIMER: what you just read was produced by pouring lukewarm tea for 42 seconds onto 9 people chained to 6 Ouija boards.