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,fdc38a13551814d X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Allocators and memory reclamation Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Tue, 29 Jan 2008 13:50:19 +0100 Message-ID: NNTP-Posting-Date: 29 Jan 2008 13:50:19 CET NNTP-Posting-Host: 2c6a0dcf.newsspool3.arcor-online.net X-Trace: DXC=baGMdn3H`VhUoRk[hk2WalMcF=Q^Z^V3h4Fo<]lROoRagUcjd<3m<;bXI@fki`e1Lh[6LHn;2LCVn7enW;^6ZC`dIXm65S@:3>oOkLd^4>\1Ld X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19651 Date: 2008-01-29T13:50:19+01:00 List-Id: On Tue, 29 Jan 2008 12:06:19 +0100, Grein, Christoph (Fa. ESG) wrote: > Dmitry wrote: >> In my understanding Deallocate is just not called. One can enforce this >> behavior when there is GC by applying the pragma Controlled, but not the >> reverse. > > No, just the reverse, pragma Controlled prevents automatic garbage > collection, see RM 13.11.3(1). Yes, that is what I meant type My_Type_Ptr is access ...; pragma Controlled (My_Type_Ptr); -- No Deallocate ever implicitly called Without the pragma it isn't called anyway, but it could be if there were GC present. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de