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-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!o28g2000yqh.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Initialization and Finalization of limited object "returned" by a function Date: Thu, 11 Feb 2010 15:18:34 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <75a9f860-ad3c-49a0-b2a1-a8f1386e6ff6@x10g2000prk.googlegroups.com> <2801be3a-afd6-4d14-ad7f-feb23a511f02@a5g2000yqi.googlegroups.com> NNTP-Posting-Host: 77.198.58.225 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1265930314 24115 127.0.0.1 (11 Feb 2010 23:18:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 11 Feb 2010 23:18:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o28g2000yqh.googlegroups.com; posting-host=77.198.58.225; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9125 Date: 2010-02-11T15:18:34-08:00 List-Id: On 12 f=E9v, 00:08, Robert A Duff wrote: > Extended return statements are not much more than syntactic sugar. On my way, I feel it's not so much syntactic sugar and it's mostly required. Otherwise, a local variable would have to be used, which would look like a return by copy. By the way, that's true I have make use of extended return where simple return statement would have been sufficient. I'm back to the remaining of your post now.