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, MSGID_RANDY 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: Robert Dewar Subject: Re: Ada vs Delphi? Date: 1999/08/09 Message-ID: <7olfsb$jtl$1@nnrp1.deja.com>#1/1 X-Deja-AN: 510442475 References: <37ab421a.5414989@news.total.net> <37ab8bd1.0@news.pacifier.com> <37ae1fc8.653954@news.clara.net> X-Http-Proxy: 1.0 x36.deja.com:80 (Squid/1.1.22) for client 129.37.79.20 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Mon Aug 09 02:54:06 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-08-09T00:00:00+00:00 List-Id: In article <37ae1fc8.653954@news.clara.net>, paulyg@clara.net (Paul Groves) wrote: > > 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? > Delphi (Pascals) pointer types are just like Ada's access > types so the same is possible in both languages. > Delphi does use pointers all over the place for its > interfacing stuff -- VCL. The poster was just asking about > scientific programming so this shouldn't really be a big > problem. The idea that scientific programming does not need dynamic allocation and pointers reflects completely out of date thinking. Modern scientific programming uses extremely sophisticated data structures, often highly dynamic in nature. And no, it is NOT "just as easy" to create memory leaks in Ada, it sounds like you do not really understand how controlled types work. They are a vital facility in a language where storage allocation is manual. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.