Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: A question of style Message-ID: <11712@smoke.BRL.MIL> Date: 30 Nov 89 23:35:03 GMT References: <547@mars.Morgan.COM> <1989Nov30.001947.14883@aqdata.uucp> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 12 In article <1989Nov30.001947.14883@aqdata.uucp> sullivan@aqdata.uucp (Michael T. Sullivan) writes: >From article <547@mars.Morgan.COM>, by amull@Morgan.COM (Andrew P. Mullhaupt): >> ...I can't think of what I would call a 'proper' use of the comma operator... Mostly it finds use within fancy macros. >while (c = getchar(), c != EOF) The standard C idiom for this is while ( (c = getchar()) != EOF ) and experienced C programmers are likely to read the standard idiom with greater facility than your proposed use of a comma operator for this.