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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,19140af19dfa6e01 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-09 09:58:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!news.mailgate.org!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada 0Y plans for garbage collection? Date: Tue, 09 Sep 2003 18:24:03 +0200 Organization: AdaCL Message-ID: <53159256.DcY8v2ZJMD@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1063126613 03 12427 rtLPVLTbTdAGJ- 030909 16:56:53 X-Complaints-To: usenet-abuse@t-online.de X-ID: VPxuXBZ-8eGFoEqqeOVwh70StxH6V97UoK979zK1H75jXz0lHuGpsN User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:42322 Date: 2003-09-09T18:24:03+02:00 List-Id: Jano wrote: > Hello, > > I'm very happy using Ada but when one needs to use heap-allocated > objects and unchecked deallocation it becomes tiresome rapidly, and that > leaving aside memory leaks. I feel the same. > After some time using Java/.NET or other managed languages this becomes > rapidly a great pain if you are in the less real time constrained > environments. I was wondering if there are plans to add a standard > garbage collection mechanism to the next revision of Ada. Seeing where > are going things this seems almost a necessity if Ada has to keep > current with times. Right. > Can someone comment on this? Are there plans to mandate it in 0Y? I heard rumors but never found any hard facts. Also take a look at s-parame.ads file which came with your GNAT: ---------------------------------------------- -- Behavior of Pragma Finalize_Storage_Only -- ---------------------------------------------- -- Garbage_Collected is a Boolean constant whose value indicates the -- effect of the pragma Finalize_Storage_Entry on a controlled type. -- Garbage_Collected = False -- The system releases all storage on program termination only, -- but not other garbage collection occurs, so finalization calls -- are ommitted only for outer level onjects can be omitted if -- pragma Finalize_Storage_Only is used. -- Garbage_Collected = True -- The system provides full garbage collection, so it is never -- necessary to release storage for controlled objects for which -- a pragma Finalize_Storage_Only is used. Garbage_Collected : constant Boolean := False; -- The storage mode for this system (release on program exit) I take it there are plans. Just not finished yet. So don't give up. > As a > side note, is out there any public implementation of GC for Ada 95? Yes there is: http://adacl.sourceforge.net Also read: http://adacl.sourceforge.net/gc.html With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com