Path: utzoo!utgpu!watmath!clyde!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: new do-while syntax Message-ID: <8562@alice.UUCP> Date: 19 Dec 88 14:37:13 GMT References: <3049@arcturus> <864@calvin.EE.CORNELL.EDU> <1716@buengc.BU.EDU> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 28 In article <1716@buengc.BU.EDU>, bph@buengc.BU.EDU (Blair P. Houghton) writes: > Pardon my two-cent kibbitz, but what's wrong with using the comma > operator to do that for which it is ideally suited? I can't use arbitrary statements with the comma operator: int i, status, count = 0; char temp[THINGSIZE]; do { readthing(precious); ++count; for (i = 0; i < THINGSIZE; i++) temp[i] = precious[i]; status = munge(temp); } while (status) { for (i = 0; i < THINGSIZE; i++) { if (temp[i] != precious[i]) printf ("munge changed element %d of line %d\n", i, count); } } As I said before, it's way too late to get anything like this into C now. It's fun to think about, though. -- --Andrew Koenig ark@europa.att.com