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 12:46:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed2.netcologne.de!news.netcologne.de!newsfeed.stueberl.de!news-FFM2.ecrc.net!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions Date: Wed, 25 Feb 2004 14:45:32 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <103q2cf890pus79@corp.supernews.com> References: <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> <1077727496.631820@master.nyc.kbcfp.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:5817 Date: 2004-02-25T14:45:32-06:00 List-Id: "Hyman Rosen" wrote in message news:1077727496.631820@master.nyc.kbcfp.com... > ARM 4.5/11 says > "The two operands of an expression of the form X op Y, > where op is a binary operator, are evaluated in an > arbitrary order, as for any function_call (see 6.4)." > > Where do you find permission for Ada to not evaluate one > operand of an "and" or "or" expression? 11.6(5), of course. Since there is no requirement to evaluate a function solely to see if it raises an exception (since the result is not needed in this case), the entire call can be removed. Randy.