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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,57f8540942f8e060 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Initialization and Finalization of limited object "returned" by a function Date: Thu, 11 Feb 2010 18:48:29 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <75a9f860-ad3c-49a0-b2a1-a8f1386e6ff6@x10g2000prk.googlegroups.com> <2801be3a-afd6-4d14-ad7f-feb23a511f02@a5g2000yqi.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1265935711 23894 69.95.181.76 (12 Feb 2010 00:48:31 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 12 Feb 2010 00:48:31 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news1.google.com comp.lang.ada:9137 Date: 2010-02-11T18:48:29-06:00 List-Id: "Robert A Duff" wrote in message news:wcc4olnid67.fsf@shell01.TheWorld.com... ... > Extended return statements are important in the limited case, > because you often want to say something like "Result.X := ...;". > And as you discovered, aggregates aren't allowed for protected > or task types (which was probably a language design mistake). One that we tried to fix last time (for a while at least), but the attempt led us down quite a rabbit hole. Enough that Paris became snow-covered while we discussed it (and then returned to normal when we gave up). OK, maybe the snow had nothing to do with this topic of discussion, but it was memorable. Randy.