Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!cs.utexas.edu!rutgers!umn-d-ub!umn-cs!nis!quad!dts From: dts@quad.uucp (David T. Sandberg) Newsgroups: comp.lang.c Subject: Re: A question of style Message-ID: <385@quad.uucp> Date: 9 Dec 89 19:59:17 GMT References: <1989Nov23.170838.10376@phri.nyu.edu> <680014@hpmwjaa.HP.COM> <11743@smoke.BRL.MIL> <1437@skye.ed.ac.uk> Reply-To: dts@quad.uucp (David T. Sandberg) Organization: Quadric Systems, Richfield MN Lines: 17 In article <1437@skye.ed.ac.uk> richard@aiai.UUCP (Richard Tobin) writes: : :[On the subject of while (c=getchar(), c!=EOF)] : :I would have thought that it's common enough to be regarded as a :standard idiom itself. At least, everyone who reads this newsgroup :should by now be quite sufficiently familiar with it! Sure. And we've also become familiar with the effects of interweaving loops and case labels, but that doesn't make it a good idea. In any event, I've yet to see while (c=getchar(), c!=EOF) used in any real world code. Just lucky, I guess. ;') -- David Sandberg dts@quad.uucp or ..uunet!rosevax!sialis!quad!dts "What's the difference??"