Path: utzoo!attcan!uunet!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Commas in macro arguments Message-ID: <16439@haddock.ima.isc.com> Date: 11 Apr 90 16:46:22 GMT References: <1990Mar22.203048.18491@dde.dk> <1990Mar23.164301.14975@utzoo.uucp> <246@samna.UUCP> <4665@jhunix.HC <701@mwtech.UUCP> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 13 In article mcdaniel@amara.uucp (Tim McDaniel) writes: > > esp_003@jhunix.UUCP (Stdnt003) writes: > >#define call(a, b) a ## b /* (See K&R for details) */ > >[This isn't legal, since `##' is expecting to produce a valid token.] That is correct. However, in this case there was no reason to use the paste operator anyway. The simpler construct #define call(a, b) a b does what Stdnt003 intended. Karl W. Z. Heuer (karl@ima.ima.isc.com or harvard!ima!karl), The Walking Lint