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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0be8eebb2993001 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada 2012 : aliased parameters ? Date: Mon, 28 Mar 2011 22:04:53 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1301367897 3499 69.95.181.76 (29 Mar 2011 03:04:57 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 29 Mar 2011 03:04:57 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news2.google.com comp.lang.ada:19539 Date: 2011-03-28T22:04:53-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:fkeyxg5zhwig.1hrc0cluxh1r2$.dlg@40tude.net... > On Mon, 28 Mar 2011 13:47:22 +0200, Yannick Duch�ne (Hibou57) wrote: > >> Quote from Ada 2012: >> >> Parameters can now be explicitly aliased, allowing parts of >> function results to designate parameters and forcing >> by-reference parameter passing. > > Interesting. How to force by-reference something allocated in a register? The thing passed has to be aliased or tagged (of course), so the compiler just has to avoid allocating them in a register. Standard stuff. > Yes one could copy the actual value and then pass a reference to the copy, > but that is not what I would call "by-reference." Neither do we. Randy.