comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Question[s] about aliased extended return.
Date: Fri, 09 Nov 2012 04:40:01 +0100
Date: 2012-11-09T04:40:01+01:00	[thread overview]
Message-ID: <op.wnhlszemule2fv@cardamome> (raw)
In-Reply-To: k7hjj5$kj9$1@munin.nbi.dk

Le Fri, 09 Nov 2012 01:43:15 +0100, Randy Brukardt <randy@rrsoftware.com>  
a écrit:

> "Shark8" <onewingedshark@gmail.com> 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 for  
>> the
>> usage
>> of the keyword ALIASED, with the restriction of "if the keyword aliased  
>> 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 only
> for compatibility (some GNAT customers used it a lot).

Why not list it in the Obsolescent Features section?

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2012-11-09  3:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02 15:55 Question[s] about aliased extended return Shark8
2012-11-09  0:43 ` Randy Brukardt
2012-11-09  3:40   ` Yannick Duchêne (Hibou57) [this message]
2012-11-10  7:34     ` Randy Brukardt
2012-11-09 19:42   ` Shark8
2012-11-09 20:53     ` sbelmont700
2012-11-09 21:44       ` Yannick Duchêne (Hibou57)
2012-11-09 22:04         ` sbelmont700
2012-11-09 22:56           ` Shark8
2012-11-09 22:54         ` Shark8
2012-11-10  7:27           ` Randy Brukardt
2012-11-10 16:08             ` Shark8
2012-11-10  1:08     ` Jeffrey Carter
2012-11-10  1:52       ` Shark8
2012-11-10  2:17         ` Yannick Duchêne (Hibou57)
2012-11-10 10:59         ` Bill Findlay
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox