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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e80a1497a689d8a5 X-Google-Attributes: gid103376,public From: Charles Hixson Subject: Re: Ammo-zilla Date: 1999/10/28 Message-ID: <38189268.43EB150F@mail.earthlink.net>#1/1 X-Deja-AN: 541731234 Content-Transfer-Encoding: 7bit References: <38120FAF.945ADD7D@hso.link.com> <7uutgd$87h$1@nnrp1.deja.com> <19991024.18033546@db3.max5.com> X-Accept-Language: en X-Posted-Path-Was: not-for-mail Content-Type: text/plain; charset=us-ascii X-ELN-Date: 28 Oct 1999 18:13:56 GMT X-ELN-Insert-Date: Thu Oct 28 11:15:05 1999 Organization: MTC Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-10-28T00:00:00+00:00 List-Id: I am continually attracted to Ada, however: The Ada approach to memory management reminds me of the PL/1 approach, only simplified a bit. I suppose that you can say that it's better than C++, but that's *REALLY* faint praise. There are a lot of details that I don't fully understand, but this is one of Ada's weaker aspects. The second is the syntax used in "object" declaration. Very clumsy. Now I *do* understand that the reason for this approach is (partially the date of design but also) to allow statically linked programs to be small enough for embedded systems, etc. And it is indeed necessary to enable this. But the cost of a unified design of this nature is that, e.g., garbage collection is eliminated from the language. (The syntax is mainly due to early design.) I feel relativly certain that if the language were to be designed today that many things would have been done differently. David Botton wrote: > > Now that's an interesting comment, because to me C++ and Ada > > are identical in this particular department, can you explain > > why you think Ada is better wrt memory leaks? > > As a result of the excellent design of Ada, I use far more static > allocation then dynamic resulting in less chance of memory leaks. Of > course once you start playing with the heap its all about personal > programmer discipline. > > David Botton