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,b99897135d6631cc X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: memory management and productivity Date: Tue, 22 Jun 2004 08:09:50 +0200 Organization: AdaCL Message-ID: <1208865.FNbNWRx584@linux1.krischik.com> References: <40d15023$1_1@baen1673807.greenlnk.net> <40d69121$1_1@baen1673807.greenlnk.net> 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 1087885864 06 19476 HaobXe1vTulgyGU 040622 06:31:04 X-Complaints-To: usenet-abuse@t-online.de X-ID: bE4hIsZZYeplo9YCSqSkB06srPrKwRgFBr3w2CsiKRsLQr3tvJYLUj User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:1762 Date: 2004-06-22T08:09:50+02:00 List-Id: Russ wrote: > "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. That's what "pragma Controlled ()" is for. Which is even better then a compiler flag. >> 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. Well it is. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com