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: 21 Jun 2004 12:03:55 -0700 Organization: http://groups.google.com Message-ID: References: <40d15023$1_1@baen1673807.greenlnk.net> <40d69121$1_1@baen1673807.greenlnk.net> NNTP-Posting-Host: 128.102.146.44 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1087844636 5960 127.0.0.1 (21 Jun 2004 19:03:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 Jun 2004 19:03:56 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:1750 Date: 2004-06-21T12:03:55-07:00 List-Id: "Martin Dowie" wrote in message news:<40d69121$1_1@baen1673807.greenlnk.net>... > "Russ" <18k11tm001@sneakemail.com> wrote in message > news:bebbba07.0406202016.1f15c133@posting.google.com... > > 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.) > > Ada does not forbid an implementation for performing GC but there > has been zero customer call for it. That's no too surprising - "Sorry, you > can't apply brakes/launch missile/shutdown reactor as I'm busy garbage > collecting." would not go done well. Are you saying that an Ada compiler can implement GC or not? That seems a bit inconsistent to me. How can the same language have it both ways? What if someone tries to port an Ada application that has its own memory management to an Ada compiler that already has it by default? I would think you would at least want it controlled by a compilation flag or some something. > But for desktop apps or even business apps, it might well be appropriate. Which is why it should be under control of the application developer, it seems to me.