comma operator

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Aug 5 02:31:50 AEST 1989


In article <3287 at ohstpy.mps.ohio-state.edu> SMITHJ at 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.

Are you sure you're not confusing the comma separating two function
arguments with the comma operator?  The comma operator has ALWAYS
been defined to evaluate its LHS before its RHS.  If the MicroSoft
5.0 manual claims otherwise, then either it's wrong or they're
trying to cover up a SEVERE bug in their compiler!



More information about the Comp.lang.c mailing list