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-08 18:10:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3E45B86F.8020403@acm.org> From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada style of passing 'in' parameters considered dangerous? References: <86isvuzabx.fsf@hoastest1-8c.hoasnet.inet.fi> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 09 Feb 2003 02:08:42 GMT NNTP-Posting-Host: 63.184.17.141 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1044756522 63.184.17.141 (Sat, 08 Feb 2003 18:08:42 PST) NNTP-Posting-Date: Sat, 08 Feb 2003 18:08:42 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:33922 Date: 2003-02-09T02:08:42+00:00 List-Id: Antti Sykari wrote: > > - Is this generally considered a dangerous thing in Ada (or in > general)? It is dangerous in any language that allows subprograms to change the value of its actual parameters to pass the same variable to more than one parameter of a subprogram. There is nothing unique about Ada in this regard. > > - Have you encountered a non-trivial real-life case where the > programmer has shot himself in the foot in the form of > implementation-defined behavior because of the error mentioned above? > I'd be interested to hear of any such cases. No. -- Jeff Carter "Death awaits you all, with nasty, big, pointy teeth!" Monty Python & the Holy Grail