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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b99897135d6631cc X-Google-Attributes: gid103376,public Path: g2news1.google.com!postnews2.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: memory management and productivity Date: 20 Jun 2004 21:16:16 -0700 Organization: http://groups.google.com Message-ID: References: <40d15023$1_1@baen1673807.greenlnk.net> NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1087791376 27766 127.0.0.1 (21 Jun 2004 04:16:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 Jun 2004 04:16:16 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:1721 Date: 2004-06-20T21:16:16-07:00 List-Id: "Martin Dowie" wrote in message news:... > "Russ" <18k11tm001@sneakemail.com> wrote in message > news:bebbba07.0406181510.37b8f5e2@posting.google.com... > > > You will be delighted to here that Ada already supports GC thought the > > > use of Controlled types then. And if that weren't enough you can grap > > > "Boehm-Demers-Weiser" GC from AdaCL @ http://adacl.sourceforge.net/. > > > > I am indeed delighted to hear that. And if Ada really has automatic > > memory management capabilities, more people need to know it. > > Hopefully this thread will breath the life of publicity to this package then > :-) > > > > However, I am curious about why initialize and finalize are different > > and better than constructors and destructors in C++. > > I never made such a claim. Well, if initialize and finalize are fundamentally no different than constructors and destructors, then I conclude that Ada does not have automated memory management any more than C++ has it. (I may be a bit slow, but I catch on eventually.) As for using a library that has memory management built in, that sounds great. I'd just feel a bit better about it if it were in a standard library that everyone agrees on and comes with the language, like STL in C++. Then you could honestly say that Ada has automated memory management built in. (And it would be better than Java's because it would be optional.)