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: 103376,9ce5fb49dc74582f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!news.glorb.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Date: Tue, 21 Nov 2006 08:04:56 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: generic question References: <1163959439.299036.129940@e3g2000cwe.googlegroups.com> <87mz6nnt4v.fsf@ludovic-brenta.org> <20061119202320.19149a2f@cube.tz.axivion.com> <4560D5BE.5060508@obry.net> <1164059458.442430.110710@j44g2000cwa.googlegroups.com> In-Reply-To: <1164059458.442430.110710@j44g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <4562a51a$0$27404$ba4acef3@news.orange.fr> NNTP-Posting-Date: 21 Nov 2006 08:04:58 CET NNTP-Posting-Host: 82.124.127.119 X-Trace: 1164092698 news.orange.fr 27404 82.124.127.119:3182 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:7591 Date: 2006-11-21T08:04:58+01:00 List-Id: Matthew Heaney a �crit : > Storage pools are associated with named access types. (I think it's > possible to allocate using an anonymous access type, but to me that's > thoroughly confusing and so I have never attempted to do so.) Yes of course: C : access Integer; ... C := new Integer'(12); > With anonymous access types the programmer must maintain the > association between allocated instance and its pool. You can only > allocate from a pool, and you must deallocate to the same pool from > which you allocated, so at some point there needs to be a conversion > between the anonymous access type and the named access type (with which > the storage pool is associated). I do not follow. The conversion will change nothing: 1. you allocate an anonymous access from a "compiler specific pool A" 2. you convert the anonymous access type to a named access type : NAT 3. you deallocate NAT from a "compiler specific pool B" This will allocate and deallocate on different pool. And AFAIK there is no way to specify the anonymous access type pool. I don't see a solution to that problem at the moment... or I'm confused :) Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595