Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!husc6!think!redsox!campbell From: campbell@redsox.bsw.com (Larry Campbell) Newsgroups: comp.lang.c Subject: Re: comma operator Summary: RTFM! RTFM! RTFM! Message-ID: <1382@redsox.bsw.com> Date: 6 Aug 89 18:27:20 GMT References: <10099@mpx2.mpx.com> <93@microsoft.UUCP> <10100@mpx2.mpx.com> <44c53d5b.f9df@gtephx.UUCP> <1351@cbnewsl.ATT.COM> <3287@ohstpy.mps.ohio-state.edu> Reply-To: campbell@redsox.UUCP (Larry Campbell) Organization: The Boston Software Works, Inc. Lines: 17 In article <3287@ohstpy.mps.ohio-state.edu> SMITHJ@ohstpy.mps.ohio-state.edu writes: - -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. You are mistaken, and if you're quoting Microsoft accurately, they're mistaken too. I quote from The Bible (edition 1, ss. 7.15, pg. 192): A pair of expressions separated by a comma is evaluated left-to-right and the value of the left expression is discarded. -- Larry Campbell The Boston Software Works, Inc. campbell@bsw.com 120 Fulton Street wjh12!redsox!campbell Boston, MA 02146