Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!dptg!att!cbnewsl!mpl From: mpl@cbnewsl.ATT.COM (michael.p.lindner) Newsgroups: comp.lang.c Subject: Re: comma operator Summary: For the Record Message-ID: <1377@cbnewsl.ATT.COM> Date: 4 Aug 89 15:50:38 GMT References: <10099@mpx2.mpx.com> <93@microsoft.UUCP> <10100@mpx2.mpx.com> <3287@ohstpy.mps.ohio-state.edu> Organization: AT&T Bell Laboratories Lines: 27 In article <3287@ohstpy.mps.ohio-state.edu>, SMITHJ@ohstpy.mps.ohio-state.edu writes: > In article <1351@cbnewsl.ATT.COM>, mpl@cbnewsl.ATT.COM (michael.p.lindner) writes: > > Sigh. RTFM! The comma operator guarantees left to right evaluation, > > Maybe I'm mistaken, but I'm sure that all the documentation I've read warns > that the *comma* operator ----does not----- guarantee evaluation in any order. > Specifically, the Microsoft 5.0 manual mentions this. > > /* Jeffery G. Smith, BS-RHIT (AKA Doc. Insomnia, WMHD-FM) * Then a) you haven't read K&R (original or second edition) b) you haven't read the ANSI standard since these all state specifically that the comma operator evaluates left to right. corollary MSC 5.0 doesn't follow either K&R or ANSI C standard I stand by my original statement. Mike Lindner attunix!mpl AT&T Bell Laboratories 190 River Rd. Summit, NJ 07901