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 Path: g2news1.google.com!news1.google.com!news.glorb.com!gegeweb.org!news.ecp.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Initialization and Finalization of limited object "returned" by a function Date: Thu, 11 Feb 2010 12:33:18 +0100 Organization: Adalog Message-ID: <5up0lh.3b5.ln@hunter.axlog.fr> References: <41b794ec-26b0-485e-a959-580a5b877a3b@f15g2000yqe.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1265889259 18920 195.25.228.57 (11 Feb 2010 11:54:19 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 11 Feb 2010 11:54:19 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <41b794ec-26b0-485e-a959-580a5b877a3b@f15g2000yqe.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:9108 Date: 2010-02-11T12:33:18+01:00 List-Id: Ludovic Brenta a �crit : > Yannick Duch�ne wrote on comp.lang.ada: >> Tested_Interface : Dispatch.Instance_Class := >> (Dispatch.New_Instance); > > Here you are initializing with an aggregate that contains the result > of the function call. I suspect this triggers a compiler bug. What > happens if you remove the parentheses? No, this is a parenthesized expression. This (would be) syntactic ambiguity is the reason why an aggregate with a single element must use named notation. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr