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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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-26 21:26:21 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: left-to-right (was In-Out Parameters for functions) Date: 27 Feb 2004 00:24:44 -0500 Organization: Cuivre, Argent, Or 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> <1077727544.813834@master.nyc.kbcfp.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1077859497 36819 212.85.156.195 (27 Feb 2004 05:24:57 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 27 Feb 2004 05:24:57 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:5880 Date: 2004-02-27T00:24:44-05:00 "Robert I. Eachus" writes: > Hyman Rosen wrote: > > > Preben Randhol wrote: > > > >> Only in the case that b is true is the evaluation of needed Sqrt > >> (x) > 5.0 Or have I missed som point here? > > Sqrt(x) may have side effects. > > Totally irrelevant. As I just posted what matters is whether or not > Sqrt(x) is declared in a pure library unit. In the case of the > standard Sqrt, the standard also says: > > pragma Pure(Generic_Elementary_Functions); > > So the compiler is free to eliminate calls to Sqrt if possible. And that freedom would remain if Ada were changed to require strict left-to-right order (just to bring this thread back to one of it's main points :). -- -- Stephe