Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 20 Dec 2012 15:31:02 -0600 Message-ID: <50D38398.2DA2@mindspring.com> Date: Thu, 20 Dec 2012 16:31:04 -0500 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: comma in a c statement, ie for(i=0,i2=0;i<10;i++,i2) References: <87hanlj6yl.fsf@bazspaz.fatphil.org> <874njkjskj.fsf@bazspaz.fatphil.org> <50CFB97C.3988@mindspring.com> <87d2y4j26y.fsf@bazspaz.fatphil.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.216.160 X-Trace: sv3-G4UVVTAckqqcgT/NNFCA+sufOymcgS5hYLN+XijhaonJTAIJ0OiFxCP4VCQW2Z6dOYKdYcNuXx7NRAS!A8K5OZhsW7h/wA0PyMtphsU6Da1vGjKkGHU8ObUgLzljG/3dqDNghPYW3OefmuBEHfVbof/kO+Ci!aaieIXxkqbU= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2057 Xref: csiph.com comp.lang.c:29548 Phil Carmody wrote: > > pete writes: > > Phil Carmody wrote: > > > Phil Carmody writes: > > > > This reinforces something that I've spotted historically > > > > - there seems to be some strange fetish > > > > for using the swiss-army for(;;) > > > > where while() is perfectly suitable. > > > > > > Perhaps I should have worded those as just "for" and "while", > > > I wasn't > > > trying to imply the "(;;)" part, just the iteration statements. > > > > for (;;) is special. > > > > while () , doesn't compile, > > even though K&R 3.5 says that they are equivalent. > > Now read what I just wrote, > and pay attention to where I say you should ignore the > open bracket, the two semicolons, and the closed bracket. This problem will get worse as I get older. -- pete