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-01-28 01:21:40 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!tar-atanamir.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions Date: Wed, 28 Jan 2004 10:29:23 +0100 Message-ID: References: <1075159458.149886@master.nyc.kbcfp.com> <1075225041.167448@master.nyc.kbcfp.com> NNTP-Posting-Host: tar-atanamir.cbb-automation.de (212.79.194.116) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1075281698 21806102 212.79.194.116 ([77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:4981 Date: 2004-01-28T10:29:23+01:00 List-Id: On 27 Jan 2004 15:06:57 -0500, Robert A Duff wrote: >On the other hand, I suspect that order-changing optimizations are not >really all that important for speed. For example: for I in A'Range loop Sum := Sum + A (I) + B (I - A'First + B'First); end loop; without order changing one cannot factor out the loop constant (B'First - A'First). Should the programmer take care of that? As a programmer I like to hand that stuff over to you, a compiler designer. In case, I will always have an abilitity to blame that "stupid compiler"! (:-)) -- Regards, Dmitry A. Kazakov www.dmitry-kazakov.de