Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale.edu!cmcl2!lanl!cochiti.lanl.gov!jlg From: jlg@cochiti.lanl.gov (Jim Giles) Newsgroups: comp.lang.fortran Subject: Re: Questions about IF Message-ID: <26384@lanl.gov> Date: 24 Jun 91 23:18:38 GMT References: <1991Jun24.213601.11329@milton.u.washington.edu> Sender: news@lanl.gov Organization: Los Alamos National Laboratory Lines: 12 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. The other question was about short-circuiting: the standard _allows_ short-circuiting but does not _require_ it. J. Giles