Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.std.c Subject: Re: Macro sustitution inside quotes Message-ID: <2200@skye.ed.ac.uk> Date: 11 Apr 90 13:17:19 GMT References: <1281@necisa.ho.necisa.oz> <12534@smoke.BRL.MIL> <1284@necisa.ho.necisa.oz> <3155@auspex.auspex.com> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 17 In article <3155@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: > (Reference: K&R I, Appendix A "C Reference Manual", p. 207: "Text inside > a string or a character constant is not subject to replacement.") I have heard it suggested that the Reiser behaviour arises from the misinterpretation of this sentence as meaning that macro calls are not expanded when they appear in strings. It's fairly clear that this is a *mis*interpretation since the preceding text refers to macro expansion as replacement of *identifiers*, which obviously don't occur in strings. -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin