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,FREEMAIL_FROM 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-26 15:24:19 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!ash.uu.net!spool.news.uu.net!not-for-mail Date: Mon, 26 Jan 2004 18:24:18 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1075159458.149886@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1075159458 10137 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:4847 Date: 2004-01-26T18:24:18-05:00 List-Id: Robert A Duff wrote: > But this allows: > A(I) := F(I); > where A is an array, and F modifies its parameter I. You know, Java hasn't lost any business by specifying order of evaluation. There's a lot to be said for strict left-to-rightness, operands before operation. Under that paradigm, the compiler would evaluate I and use it to fix the identity of the object referred to by A(I). Then it calls F with I as the parameter. If you said A(I) := F(I) + I and F changed I, the sum would use the changed I. If you said A(I) := I + F(I) the sum would use the original I. Of what use is lack of specificty? I think the days where this could significant speed difference in the generated code are long gone.