Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!dptg!att!cbnewsd!markp From: markp@cbnewsd.ATT.COM (mark.j.purdome) Newsgroups: comp.lang.c Subject: Re: comma operator Message-ID: <990@cbnewsd.ATT.COM> Date: 4 Aug 89 13:49:37 GMT References: <3287@ohstpy.mps.ohio-state.edu> Organization: AT&T Bell Laboratories Lines: 15 From article <3287@ohstpy.mps.ohio-state.edu>, by SMITHJ@ohstpy.mps.ohio-state.edu: > > 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. > If this is true for MSC 5.0, they fixed it in MSC 5.1. From MSC 5.1 Language Reference, Section 5.3.11, p. 130: 5.3.11 Sequential-Evaluation Operator The sequential-evaluation operator evaluates its two operands sequentially from left to right. ... The sequential-evaluation operator, also called the "comma operator," is typically used to evaluate two or more expressions in contexts where only one expression is allowed.