Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale.edu!cmcl2!beta!cochiti.lanl.gov!jlg From: jlg@cochiti.lanl.gov (Jim Giles) Newsgroups: comp.lang.fortran Subject: Re: Questions about IF Message-ID: <26530@beta.gov> Date: 26 Jun 91 18:03:18 GMT References: <26384@lanl.gov> <1991Jun25.124806.15349@cs.dal.ca> <26462@beta.gov> <1991Jun26.130917.20736@cs.dal.ca> Sender: news@beta.gov Organization: Los Alamos National Laboratory Lines: 13 In article <1991Jun26.130917.20736@cs.dal.ca>, silvert@cs.dal.ca (Bill Silvert) writes: |> [...] |> What's the point? The original posting asked about the order in which |> the expressions were evaluated, since that can have side effects. What |> difference does it make in what order the AND's are evaluated? Well, AND is commutative and associative, so it shouldn't make any difference. But, Fortran _allows_ short-circuit evaluation of logicals, so if you're on one of those machines that does that, the order of the ANDs usually turns out to be the order of the expressions as well. It could be nice to know you can enforce that. J. Giles