🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1446

Re: sequence points

#1446
From: Geoffrey Rogers
Date: Wed, 27 Jun 1990 23:30
21 lines
1394 bytes
In article <1988@mcrware.UUCP> jejones@mcrware.UUCP (James Jones) writes:
>Suppose one has an expression of the form
>
>	func1(<argument list>) + func2(<argument list>)
>
>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 |                                 |
+------------------------------------+---------------------------------+
Technical Details
Message-ID: <103459@convex.convex.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!convex!grogers
References: <1988@mcrware.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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