From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a00006d3c4735d70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-25 09:11:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions Date: Wed, 25 Feb 2004 17:11:29 +0000 (UTC) Organization: PVV Message-ID: References: <1075987360.225622@master.nyc.kbcfp.com> <40236C0B.E988E003@0.0> <1077634311.254581@master.nyc.kbcfp.com> <1077718871.47635@master.nyc.kbcfp.com> <54cp3095jmv8s17h63d4bjdus0tec7l7pt@jellix.jlfencey.com> <1077721343.481619@master.nyc.kbcfp.com> <1077724400.221032@master.nyc.kbcfp.com> <1077728214.676718@master.nyc.kbcfp.com> NNTP-Posting-Host: k-083152.nt.ntnu.no X-Trace: tyfon.itea.ntnu.no 1077729089 17373 129.241.83.152 (25 Feb 2004 17:11:29 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 25 Feb 2004 17:11:29 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:5806 Date: 2004-02-25T17:11:29+00:00 List-Id: On 2004-02-25, Hyman Rosen wrote: > Yes, so? As I said, if the compiler knows that sqrt(x) > is free of side effects, it can go ahead and evaluate > b first and never call sqrt(x) if b is false. > That's true in both forms above. It doesn't matter how > you write it. If sqrt(x) is free of side effects, you > cannot know whether it has been called, as far as the > language definition is concerned. My point was that when you use the and then you tell the compiler to evaluate left-side before right. Whereas if you use only and it is not given which side will be evaluated first. At least I thought so. -- "Saving keystrokes is the job of the text editor, not the programming language."