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-02-03 06:07:32 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Tue, 03 Feb 2004 09:06:52 -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: <1075303237.975898@master.nyc.kbcfp.com> <9khh10pti0dn8gcp7f18ghptaifluj0fud@4ax.com> <1075390647.405841@master.nyc.kbcfp.com> <1075405582.982776@master.nyc.kbcfp.com> <1075482385.142744@master.nyc.kbcfp.com> <1075732402.294581@master.nyc.kbcfp.com> <1075741279.952497@master.nyc.kbcfp.com> <16nu1099ekujjbpe9dqvs3noi9sdcfja6e@4ax.com> In-Reply-To: <16nu1099ekujjbpe9dqvs3noi9sdcfja6e@4ax.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1075817212.745748@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@carrots.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1075817212 6484 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:5197 Date: 2004-02-03T09:06:52-05:00 List-Id: Dmitry A. Kazakov wrote: > + is commutative Mathematics went beyond dogmatic statements like that many years ago. Notice you didn't say that * is commutative. Very disingenuous. > You want to fix the circumstances, I prefer to fix the code. Once the circumstances are fixed, the code is no more broken than if the operands were evaluated in sequential statements. > The results are illegal, if different [*]. Can you point to where the ARM says so? I believe you are wrong. > When a programmer writes: x:=a+b, the postcondition of that is: > { x=a+b & x=b+a } If I replace + with *, you would find no one agreeing with you if the operands were matrices, for example.