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 06:06:08 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions Date: 26 Jan 2004 06:06:08 -0800 Organization: http://groups.google.com Message-ID: <5ad0dd8a.0401260606.76cc4415@posting.google.com> References: NNTP-Posting-Host: 62.111.211.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1075125968 30559 127.0.0.1 (26 Jan 2004 14:06:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Jan 2004 14:06:08 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:4812 Date: 2004-01-26T06:06:08-08:00 List-Id: Hello, > The F and G functions may both update global variable X, but neither of them > uses that X for computing the result, and this is what makes difference. Oh, I can easily imagine functions H and J that both do read _and_write_ a global variable Y. Perhaps just expressions with value (and side effect) dependent on the order of computation, should not be allowed. It would be a good rule, but it is too late for it, I guess. Or the order of computation should be explicitly defined as left to right. Or maybe it already is, and I don't know about it :-) Regards, Wojtek