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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9ce5fb49dc74582f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: generic question Date: Mon, 20 Nov 2006 19:10:52 +0100 Message-ID: <4se99nFv3ba7U1@mid.individual.net> References: <1163959439.299036.129940@e3g2000cwe.googlegroups.com> <87mz6nnt4v.fsf@ludovic-brenta.org> <20061119202320.19149a2f@cube.tz.axivion.com> <4560D5BE.5060508@obry.net> <4sdejbFuovi3U1@mid.individual.net> <4561DFF8.5000904@obry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: individual.net 0xCBnuCOKfZN5mKKnhJ2JQFi4djVuMAwhAjFcb20llSS8GIgI= User-Agent: KNode/0.10.4 Xref: g2news2.google.com comp.lang.ada:7584 Date: 2006-11-20T19:10:52+01:00 List-Id: Pascal Obry wrote: > Alex R. Mosteo a �crit : >> Isn't enough to have a wrapper access type at the point of deallocation? >> Or are some scope rules preventing this? > > Yes and no. The anonymous access types and named access types won't use > the same memory pool. So doing this will not be portable. I think it > will work with current compilers though... If I'm not mistaken, point 13.11.2(16) would make it not even not portable but indeed erroneous. Unless you use a named access type for the initial allocation and the final deallocation. Admittedly I'm not very sure of any of this.