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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,19140af19dfa6e01 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-13 13:38:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail Message-ID: <3F638012.9040902@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada 0Y plans for garbage collection? References: <1127954.kcBZz6amlf@linux1.krischik.com> <3F60E747.40805@attbi.com> <3F62004D.6080704@attbi.com> <1628992.MuEcJQX0hj@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.34.139.183 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc02 1063485475 24.34.139.183 (Sat, 13 Sep 2003 20:37:55 GMT) NNTP-Posting-Date: Sat, 13 Sep 2003 20:37:55 GMT Organization: Comcast Online Date: Sat, 13 Sep 2003 20:37:56 GMT Xref: archiver1.google.com comp.lang.ada:42459 Date: 2003-09-13T20:37:56+00:00 List-Id: Martin Krischik wrote: > But for it to work realy user friendly, would you not need compiler > support? Everytime a new access is created or destroyed the compiler > would need to tell the storrage pool. > > Remember: controlled types where considered not user friendly. If I > undersand the OP right he wants: > > type Some_Access is access Some_Type; for Some_Access'Storrage_Pool > use Ada.Reference_Counted__Pools.Pool; > > the rest need to be done by the compiler. All that is currently allowed. Well technically, it should be My_Storage_Pool: Reference_Counted_Storage_Pool; type Some_Access is access Some_Type; for Some_Access'Storage_Pool use My_Storage_Pool; ...but that is a detail. Should we require such a storage pool type in Ada 200Y? I think it would be a good idea. But requiring that there be an instance of such a pool might not be a good idea. And I tend to like my current implementation, where I create a pool by instantiating a generic package, with the size of each allocated object, and the number of objects in the heap. It has a very low overhead for allocate and free. (And both operations are bounded in time.) -- Robert I. Eachus "As far as I'm concerned, war always means failure." -- Jacques Chirac, President of France "As far as France is concerned, you're right." -- Rush Limbaugh