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,e51f94f876618e37 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.66.81.170 with SMTP id b10mr3673626pay.31.1352432406331; Thu, 08 Nov 2012 19:40:06 -0800 (PST) Path: s9ni746pbb.0!nntp.google.com!news.glorb.com!gegeweb.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Question[s] about aliased extended return. Date: Fri, 09 Nov 2012 04:40:01 +0100 Organization: Ada @ Home Message-ID: References: <9bbd99bd-f953-434d-b3c8-6e8a6d5c7dfd@googlegroups.com> NNTP-Posting-Host: aWaWeUaBdaj2Zzc04J1v5A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.02 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-11-09T04:40:01+01:00 List-Id: Le Fri, 09 Nov 2012 01:43:15 +0100, Randy Brukardt = a =C3=A9crit: > "Shark8" wrote in message > news:9bbd99bd-f953-434d-b3c8-6e8a6d5c7dfd@googlegroups.com... >> The syntax for the extended return given in the RM >> [ http://www.ada-auth.org/standards/12rm/html/RM-6-5.html ] allows fo= r = >> the >> usage >> of the keyword ALIASED, with the restriction of "if the keyword alias= ed = >> is >> present >> in an extended_return_object_declaration, the type of the extended = >> return >> object >> shall be immutably limited." >> >> The 2012 rationale entry regarding the extended return >> [ http://www.ada-auth.org/standards/12rat/html/Rat12-4-6.html ] says = of >> immutably limited objects: >> * it is an explicitly limited record type, >> * it is a task type, protected type or synchronized interface, >> * it is a non-formal limited private type that is tagged or has an = >> access >> discriminant with a default expression, [or] >> * it is derived from an immutably limited type. >> >> (1) Doesn't this reduce the usefulness of the extended return? > > No. Allowing "aliased" at all was a bug in Ada 2005; we preserved it o= nly > for compatibility (some GNAT customers used it a lot). Why not list it in the Obsolescent Features section? -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity