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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,68536605ede13a20 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.189.194 with SMTP id gk2mr4821881pbc.3.1324469140666; Wed, 21 Dec 2011 04:05:40 -0800 (PST) Path: lh20ni47792pbb.0!nntp.google.com!news2.google.com!goblin2!goblin1!goblin.stu.neva.ru!newsreader4.netcologne.de!news.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 21 Dec 2011 13:05:39 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT - return by anonymous access References: <784c67eb-a542-41b0-b23d-fca1234e56b2@n10g2000vbg.googlegroups.com> <95f3b0fc-af24-4ace-afc9-227e8893ea99@n6g2000vbg.googlegroups.com> <91845790-2447-4b2c-a6b5-1a52557c8c17@d10g2000vbk.googlegroups.com> <4ef1bd63$0$6567$9b4e6d93@newsspool4.arcor-online.net> <3a6fad50-c289-4300-bcc2-fb1f9f0b7e7a@l29g2000yqf.googlegroups.com> In-Reply-To: <3a6fad50-c289-4300-bcc2-fb1f9f0b7e7a@l29g2000yqf.googlegroups.com> Message-ID: <4ef1cb93$0$7626$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 21 Dec 2011 13:05:39 CET NNTP-Posting-Host: 9b4c2c68.newsspool1.arcor-online.net X-Trace: DXC=89mNL??f4AbEB;5>eE0T7mic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgbPhBQN`[]M5cPCY\c7>ejVhi[Q6374cgTgo_0Jco0D[ei X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-12-21T13:05:39+01:00 List-Id: On 21.12.11 12:43, AdaMagica wrote: > On 21 Dez., 12:05, Georg Bauhaus > wrote: >> X := new Limited_Type'(Build_in_Place_Function); > > declare > X: Some_Limited_Type := Function_Call_or_Aggregate; -- this is > built in place (no pointer in use) OP wanted to return an allocated object of limited type (which is when GNAT issues its message). If there is a reason for doing so (maybe allocating a global library level task at some nested level), then what can be done without a redesign? (Is everyone happy with dropping return-by-reference for limited types? There was a use case for these. I guess it has not disappeared, whatever difficulties implementers might have encountered...)