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,6a0391eb7e0327d5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-09 20:40:55 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: martin.dowie@btopenworld.com (Martin Dowie) Newsgroups: comp.lang.ada Subject: Re: Ada style of passing 'in' parameters considered dangerous? Date: 9 Feb 2003 20:40:54 -0800 Organization: http://groups.google.com/ Message-ID: References: <86isvuzabx.fsf@hoastest1-8c.hoasnet.inet.fi> <3E45FFCB.90109@attbi.com> NNTP-Posting-Host: 203.127.176.150 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1044852054 19309 127.0.0.1 (10 Feb 2003 04:40:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Feb 2003 04:40:54 GMT Xref: archiver1.google.com comp.lang.ada:33943 Date: 2003-02-10T04:40:54+00:00 List-Id: "Robert I. Eachus" wrote in message > > Reciprocal(Foo, Foo); I think I'm right in saying that SPARK would catch this. It would be nice if compilers at least warned of this (simple) case. I imagine that the work involved in spotting aliased versions of this problem might be a bit expensive($) to get compiler implementor to include. :-(