Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!spl From: spl@mcnc.org (Steve Lamont) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <5023@alvin.mcnc.org> Date: 5 Aug 89 14:46:28 GMT References: <10099@mpx2.mpx.com> <93@microsoft.UUCP> <10100@mpx2.mpx.com> <13184@bloom-beacon.MIT.EDU> <5418@ficc.uu.net> Reply-To: spl@mcnc.org.UUCP (Steve Lamont) Organization: Microelectronics Center of NC; RTP, NC Lines: 18 In article <5418@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >Herewith the only use for the comma operator outside a macro that I can >think of: > > for(init1, init2; test; incr1, incr2)... Can anyone tell me whether order of evaluation is guaranteed in this context? I seem to remember either of running afoul of some order of evaluation bogon or reading somewhere that order of evaluation was not guaranteed... or maybe I'm thinking of function calls (???). Email replies will suffice unless someone has something earth-shattering to add. -- spl Steve Lamont, sciViGuy EMail: spl@ncsc.org North Carolina Supercomputing Center Phone: (919) 248-1120 Box 12732/RTP, NC 27709