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-Thread: a07f3367d7,9cccd7364739aea1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Passing the same actual as both in and out formal parameters? Date: Tue, 17 Nov 2009 14:13:25 +0100 Organization: Adalog Message-ID: References: <1fbe454c-52b0-408b-9159-982fc019a53c@j19g2000yqk.googlegroups.com> <81utdh.otp.ln@hunter.axlog.fr> <044632e0-e40c-4c47-ab56-189f4ae0c15b@u7g2000yqm.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1258467344 18878 195.25.228.57 (17 Nov 2009 14:15:44 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 17 Nov 2009 14:15:44 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <044632e0-e40c-4c47-ab56-189f4ae0c15b@u7g2000yqm.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:8128 Date: 2009-11-17T14:13:25+01:00 List-Id: Ludovic Brenta a �crit : > My exampled was heavily simplified; the actual type has about a > hundred components and the procedure P is a little more complex than > swapping components :) > > But thanks for the responses, Niklas and Jean-Pierre. They confirm my > suspicion. > But the important thing is that there is no risk: behaviour is well defined, and will not change with the next release of the compiler. If it is not the behaviour you want, you can make a local copy (but you know that). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr