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 12:39:30 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: 28 Jan 2004 15:39:29 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <5ad0dd8a.0401240721.7682f2e1@posting.google.com> <5ad0dd8a.0401280230.5c800894@posting.google.com> NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1075322369 17630 192.74.137.185 (28 Jan 2004 20:39:29 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 28 Jan 2004 20:39:29 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:5008 Date: 2004-01-28T15:39:29-05:00 List-Id: wojtek@power.com.pl (Wojtek Narczynski) writes: > > Ada is inconsistent -- as Robert Dewar says, side effects are allowed, > > so long as you don't document them on the function spec. > > Looks to me like the ARG is far from agreement on this subject :-) That's true. Tucker and I, for example, have had this argument several times. I'm in favor of allowing 'in out' parameters on functions in Ada (but not SPARK!), and Tucker is against. - Bob