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-Thread: 103376,f0be8eebb2993001,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Ada 2012 : aliased parameters ? Date: Mon, 28 Mar 2011 13:47:22 +0200 Organization: Ada @ Home Message-ID: NNTP-Posting-Host: H+AM93vqGaZRLdQzwI1fHQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.01 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:19511 Date: 2011-03-28T13:47:22+02:00 List-Id: Hello, I was looking at what the Ada 2012 reference looks like so far, and = especially at all the =E2=80=9CExtensions to Ada 2005=E2=80=9D sections.= In =E2=80=9CSubprogram = Declarations=E2=80=9D there is such an extension. Quote from Ada 2012: Parameters can now be explicitly aliased, allowing parts of function results to designate parameters and forcing by-reference parameter passing. I'm not sure I've understood. What was wrong with access type parameters= ? = I don't see a reason why aliased parameters may be required (and don't = feel this can be clean). Well, why not in/out parameter for functions, a= s = things like test-and-set are common idioms, but I really can't figure wh= y = this one in particular was required. I may look at the related AI later, but it's long (so I will deffer it).= A = quick overview of good reasons from someone who know ? -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9C c++; /* this makes c bigger but returns the old value */ =E2=80= =9D [Anonymous]