Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!styx!ames!rutgers!dayton!viper!john From: john@viper.UUCP Newsgroups: comp.lang.c Subject: order of evaluation Message-ID: <616@viper.UUCP> Date: Wed, 4-Mar-87 00:00:57 EST Article-I.D.: viper.616 Posted: Wed Mar 4 00:00:57 1987 Date-Received: Fri, 6-Mar-87 06:44:17 EST Reply-To: john@viper.UUCP (John Stanley) Organization: DynaSoft Systems Lines: 22 I made an incorrect statement a few days ago in this newsgroup about the order of evaluation of a series of additions where parens were included. The message I was disagreeing with stated that the parens have no effect on the structure of the evaluation tree generated. Since then, I've received a few messages pointing out references in K&R which explicitly state that the elements in a series of additions (or multiplications) may freely be reordered to occur in any order by the compiler. I sit corrected, but I still feel that the standard should have rules which will allow a programmer to -know- the exact order of evaluation for any equation. I know this is not likely for the sole reason that there are too many different compilers already existing that do the ordering in far too many different ways.... I still feel that this is a significant failing in the language definition and would like to see a change. --- John Stanley (john@viper.UUCP) Software Consultant - DynaSoft Systems UUCP: ...{amdahl,ihnp4,rutgers}!{meccts,dayton}!viper!john