Path: utzoo!attcan!uunet!convex!grogers From: grogers@convex.com (Geoffrey Rogers) Newsgroups: comp.std.c Subject: Re: sequence points Message-ID: <103459@convex.convex.com> Date: 27 Jun 90 23:30:12 GMT References: <1988@mcrware.UUCP> Sender: news@convex.com Organization: Convex Computer Corporation; Richardson, TX Lines: 21 In article <1988@mcrware.UUCP> jejones@mcrware.UUCP (James Jones) writes: >Suppose one has an expression of the form > > func1() + func2() > >Can a standard-conforming implementation evaluate *both* argument lists before >calling either function? > The dp ANSI, Dec 89, page 42, states "The order of evaluation of the function designator, the arguments, and subexpressions within the arguments are unspecified, but there is a sequence point before the actual call". This would lead me to believe that you can evaluate all of the arguments for both functions before calling either one. Most compilers I seen do evaluation a function at a time. +------------------------------------+---------------------------------+ | Geoffrey C. Rogers | "Whose brain did you get?" | | grogers@convex.com | "Abbie Normal!" | | {sun,uunet,uiucdcs}!convex!grogers | | +------------------------------------+---------------------------------+