Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!ukc!strath-cs!ex-dcs!exua!JRowe From: JRowe@exua.exeter.ac.uk (John Rowe) Newsgroups: comp.lang.fortran Subject: Re: Questions about IF Message-ID: Date: 26 Jun 91 10:13:43 GMT References: <1991Jun24.213601.11329@milton.u.washington.edu> <26384@lanl.gov> Sender: JRowe@exua.exeter.ac.uk Organization: Computer Unit. - University of Exeter. UK Lines: 18 In-reply-to: jlg@cochiti.lanl.gov's message of 24 Jun 91 23:18:38 GMT In article <26384@lanl.gov> jlg@cochiti.lanl.gov (Jim Giles) writes: > Actually, the standard does require that no optimization > violate parenthesis. So you can force the order of > evaluation any way you want: > If (expr1 .and. (expr2.and.expr3)) then > ... > This does the second '.and.' first. But can it choose to evaluate: If ((expr2.and.expr3) .and. expr1) then I didn't see anything that said it couldn't. John