Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ico!ism780c!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <14196@haddock.ima.isc.com> Date: 4 Aug 89 16:22:38 GMT References: <1989Jul28.174033.12734@jarvis.csri.toronto.edu> <2550097@hpisod2.HP.COM> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 8 In article <2550097@hpisod2.HP.COM> decot@hpisod2.HP.COM (Dave Decot) writes: >Another convenient use of the comma operator is in for loops ... Which is only necessary because of a flaw in the language, in that it requires the pieces of a "for" statement to be expressions rather than statements, even though the values of the first and third pieces are ignored. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint