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-26 01:45:03 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!adsl-213-200-246-247.cybernet.CH!not-for-mail From: Vinzent 'Gadget' Hoefler Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions Date: Thu, 26 Feb 2004 10:44:22 +0100 Organization: JeLlyFish software Message-ID: References: <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> <103q2cf890pus79@corp.supernews.com> <1077744815.17965@master.nyc.kbcfp.com> NNTP-Posting-Host: adsl-213-200-246-247.cybernet.ch (213.200.246.247) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 1077788702 53213494 I 213.200.246.247 ([175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:5833 Date: 2004-02-26T10:44:22+01:00 List-Id: Hyman Rosen wrote: >For the particular case of sqrt(x), where we're talking >about Ada's built-in sqrt, and the only possible side-effect >is for it to raise an exception. But if instead we have >(gnurble(x) > 0.5 and b), and the compiler knows that b is >false but has no information about what gnurble does, it >must call gnurble(x) even though the result is irrelevant. Yes, it should (I'm not sure, if it actually *has to*) call the function if it is possible that the function has side-effects. What's your problem here? Vinzent.