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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,344faf475a6f812a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.68.246.229 with SMTP id xz5mr5587477pbc.1.1366707436997; Tue, 23 Apr 2013 01:57:16 -0700 (PDT) Path: bp1ni465pbd.1!nntp.google.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Interresting difference in Normal-Returns/Expression-Functions and Extended-Returns. Date: Tue, 23 Apr 2013 10:58:14 +0200 Organization: cbb software GmbH Message-ID: <1859197u3t4oa$.1wtkmyshdiqo1$.dlg@40tude.net> References: <97967083-d21d-4de2-aeb8-76d0d5818993@googlegroups.com> <1b3buvosg9fcq$.z1uq1tdfril2$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-04-23T10:58:14+02:00 List-Id: On Mon, 22 Apr 2013 13:11:41 -0700 (PDT), Shark8 wrote: > On Monday, April 22, 2013 1:13:47 PM UTC-6, Dmitry A. Kazakov wrote: >> 3. Do not return anonymous access objects created by allocator new. It is >> almost always a bug. > > Yeah, adding a named access-type probably would clean up the code a little. No, it is not cleaning the code it is about having a bug. Anonymous access types is an evil (as well as expression-functions, of course). Anyway, the relevant RM section is 7.6.1(11). You have finalization intermixed with the tasks warm-up. The result is a race condition. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de