X-Received: by 10.68.213.103 with SMTP id nr7mr28184pbc.7.1355790715279; Mon, 17 Dec 2012 16:31:55 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!usenet.stanford.edu!kr7no8838517pbb.0!news-out.google.com!s9ni50786pbb.0!nntp.google.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: Mon, 17 Dec 2012 18:31:53 -0600 Message-ID: <50CFB97C.3988@mindspring.com> Date: Mon, 17 Dec 2012 19:31:56 -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> Lines: 17 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.156.228.63 X-Trace: sv3-mglQ9H+h2RrtQxb7Jq3OlAlvXZvVS4pO8Z24s3N5o5kFxZ+XFX6REYTX9hKUTkiTIfqgV4vda2wsE0J!KGNR9VVEaeiuJHFVyVhCGZlGtznDxO58DFhgtT4AEj/fxjswv31muzs5D/jefC8822RtKp93htSc!Rfvu27svng== 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: 1662 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xref: csiph.com comp.lang.c:29447 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. -- pete