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-26 15:37:32 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions Date: 26 Jan 2004 18:37:31 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1075159458.149886@master.nyc.kbcfp.com> NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1075160251 9395 192.74.137.185 (26 Jan 2004 23:37:31 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 26 Jan 2004 23:37:31 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:4848 Date: 2004-01-26T18:37:31-05:00 List-Id: Hyman Rosen writes: > 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. True. At least that way, you don't get different answers on different implementations. But it's still hard to understand statements/expressions that have mutually-depndent side-effecting operations in the middle. It does seem of some value to attempt to make sure "order doesn't matter". - Bob