Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: == vs = Message-ID: <2630@haddock.ISC.COM> Date: 18 Feb 88 17:50:12 GMT References: <11216@brl-adm.ARPA> <2111@chinet.UUCP> <4403@garfield.UUCP> <891@micomvax.UUCP> <3295@psuvax1.psu.edu> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 14 In article <3295@psuvax1.psu.edu> schmidt@gondor.cs.psu.edu (David E. Schmidt) writes: >... Why couldn't the dpANS committee list the operator ":=" as a common >extension ...? Maybe because it isn't common. I've never heard of *any* C compiler that accepts it. (If, however, a number of vendors start including this feature, then I think X3J11 would be duty-bound to list it as such, and to consider it for inclusion in the next standard. I hope it doesn't happen.) A better solution would be to list "if (x = y)" and friends as a common warning. There *is* precedent for this, since some versions of lint (and cc too, I'm sure) will flag it. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint