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-14 12:10:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: Ada 0Y plans for garbage collection? References: From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 14 Sep 2003 19:10:00 GMT NNTP-Posting-Host: 65.110.133.134 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1063566600 65.110.133.134 (Sun, 14 Sep 2003 15:10:00 EDT) NNTP-Posting-Date: Sun, 14 Sep 2003 15:10:00 EDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:42485 Date: 2003-09-14T19:10:00+00:00 List-Id: olehjalmar kristensen - Sun Microsystems - Trondheim Norway writes: > I still think the way it was done in Modula-3 gives you the best of > both worlds. If you want garbage collection, you allocate from a > different pool. If you don't want it you don't use it, and there is no > overhead. This would be the case in Ada, too, were an Ada vendor to provide such a pool (which the language was specifically designed to allow). Something like: type T is ...; type T_Access is access T; for T_Access'Storage_Pool use Garbage_Collected_Pool; Now when you do this: O : T_Access := new T; then the object is allocated from the garbage collected storage pool. However, I don't think there are any Ada vendors that provide such a pool, mostly because there has not been a market for it.