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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no 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 Path: g2news1.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!news.ecp.fr!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: Fri, 12 Feb 2010 19:54:53 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <75a9f860-ad3c-49a0-b2a1-a8f1386e6ff6@x10g2000prk.googlegroups.com> <2801be3a-afd6-4d14-ad7f-feb23a511f02@a5g2000yqi.googlegroups.com> <8a8514af-0d80-4acc-a2de-d7128c345d97@b7g2000yqd.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1266026094 13805 69.95.181.76 (13 Feb 2010 01:54:54 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 13 Feb 2010 01:54:54 +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:9186 Date: 2010-02-12T19:54:53-06:00 List-Id: "Hibou57 (Yannick Duch�ne)" wrote in message news:8a8514af-0d80-4acc-a2de-d7128c345d97@b7g2000yqd.googlegroups.com... ... >Better than an aggregate for protected and task, there should be >something acting like an empty aggregate, which would be to be used as >an initializer for protected and task only. Right. That's what we were trying to do for Ada 2005, and it just didn't work out. It's weird that you can default initialize a component in an aggregate with <>, but there is no way to do that for an entire object. We also wanted to be able to default initialize the private part of an extension. But we ran into all kinds of weird problems. I don't plan to go there again myself, there were enough people who didn't like anything involving "others". Randy.