From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: tprince@cat.e-mail.com Cc: bosch@gnat.com, burley@gnu.org, egcs@cygnus.com, hjstein@bfr.co.il, moshier@mediaone.net, tim@wagner.Princeton.EDU Subject: Re: Reassociation Date: Thu, 17 Dec 1998 20:03:00 -0000 Message-id: <7844.913953763@upchuck> References: <4.19981217.11.29.23.594944@cat.e-mail.com> X-SW-Source: 1998-12/msg00694.html In message < 4.19981217.11.29.23.594944@cat.e-mail.com >you write: > In view of the fact that left-to-right evaluation has been expected > from C compilers and that most current Fortran compilers follow > that scheme, I have tended to take that into account when setting > up expressions where the compiler may apply Common > Sub-expression Evaluation. I don't see that as anything more > than a mild suggestion as to how the compiler should treat my > code. Yup. We often call this the principle of least suprise. It may be the case that enough folks expect C to strictly evaluate these expressions left to right and that changing it would cause massive problems, in which case we need to think long and hard about how wise it is to "break" such code. jeff