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,c7f5c70275787af8 X-Google-Attributes: gid103376,public From: Brian Rogoff Subject: Re: Ada vs Delphi? Date: 1999/08/10 Message-ID: #1/1 X-Deja-AN: 511312692 References: <37ab421a.5414989@news.total.net> <37ab8bd1.0@news.pacifier.com> <37ae1fc8.653954@news.clara.net> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp1.ba.best.com 934342207 219 bpr@206.184.139.136 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-08-10T00:00:00+00:00 List-Id: On Mon, 9 Aug 1999, Paul Groves wrote: > >Advantage of Ada > > Types may be derived from Ada.Finalization.Controlled in order to > >eliminate the risk of memory leaks. Delphi has no counterpart. In Delphi > >it is easy to create memory leaks. > Isn't it just as 'easy' to "create memory leaks" in Ada? Yes, but that isn't the point. By using controlled types it is easier to create programs that don't leak resources (memory, file handles, etc...). > Delphi (Pascals) pointer types are just like Ada's access > types so the same is possible in both languages. Ada also doesn't confuse access types and "objects", like many other languages, so you don't need to hit the heap as hard as in some other OO languages. > > Ada supports overloading of operators, functions, and procedures. > Not always a good thing. Overloading is very useful in writing readable programs, if you have the discipline and good taste to use it wisely. Many nice languages I've used, like Ocaml, don't have it, but I find that a bug in ML not a bug in Ada. > > > Programs written in Ada are more likely to be portable to other > >architectures. Delphi lives only on PC's. > True, but again - If the guy just wants to do scientific > programming Pascal would do and its portable. Given that comment, I'm quite certain that you don't know Ada, or, more importantly, scientific programming. -- Brian