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: a07f3367d7,e51f94f876618e37 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.180.95.227 with SMTP id dn3mr874098wib.1.1353058058806; Fri, 16 Nov 2012 01:27:38 -0800 (PST) Path: q13ni312968wii.0!nntp.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!216.40.29.245.MISMATCH!novia!news-hub.siol.net!news1.t-com.hr!newsfeed.CARNet.hr!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: Sat, 10 Nov 2012 03:17:15 +0100 Organization: Ada @ Home Message-ID: References: <9bbd99bd-f953-434d-b3c8-6e8a6d5c7dfd@googlegroups.com> <3f8ba99f-015f-4567-8d31-6c711beb58c4@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-10T03:17:15+01:00 List-Id: Le Sat, 10 Nov 2012 02:52:43 +0100, Shark8 a = = =C3=A9crit: > On Friday, November 9, 2012 6:08:46 PM UTC-7, Jeffrey Carter wrote: >> On 11/09/2012 12:42 PM, Shark8 wrote: >> >> The extended return exists for build-in-place results of limited type= s. = >> There's >> really no reason to use it for other types. > > Really? I thought it was quite useful for initializing things too: No (it was discussed some many months ago). It may looks like a = write=E2=80=91in=E2=80=91place statement, but that's only an appearance,= nothing specifies = it should have this behavior. For non=E2=80=91limited types, the extende= d return = statement is exactly the same as a classic return statement, wrapped in = a = local scope (as with a declare/begin/end block) with a locally declared = = variable. Nothing special with this construct when not applied to a = limited type. -- = =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