Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!wdl1!cutter!bard From: bard@cutter.ssd.loral.com (J H Woodyatt) Newsgroups: comp.lang.c Subject: Re: Evaluation of if's Keywords: ANSI standard Message-ID: <1991Jun7.202120.25450@wdl1.wdl.loral.com> Date: 7 Jun 91 20:21:20 GMT Sender: bard@cutter (J H Woodyatt) Followup-To: comp.lang.c Organization: Space Systems/Loral Lines: 29 The pummeling I've been receiving in the mail concerning my confusion over exactly what the ANSI standard says about assignment operations has led me to gather my thoughts (somewhat) and ask the question I suppose is at the bottom of my trouble. Here it is: ``When it says that the resulting value of an assignment expression is the value stored in the left operand after the assignment has taken place, does that mean the value *written* to the left operand, or the value that is read (some time before the next sequence point) from the object described by the left operand after the write has been performed?'' It's a subtle point, but it troubles me nonetheless. I figure that the standard either explicitly states that it's the former, it's the latter, it explicitly leaves it to the implementation, or it is curiously silent on the matter. And, I would like to know which (without having to go out and buy a bleeding copy of the bleeding standard). The mail I've been getting implies that it is explicitly left to the imple- mentation of the compiler. Is this the case? -- __________________________________________________________________ | | James Woodyatt VOICE: (415) 852-5429 | Space Systems/Loral (M/S G87) FAX: (415) 852-6286 | 3825 Fabian Way E-MAIL: bard@cutter.ssd.loral.com | Palo Alto, CA 9430 |