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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,345a8b767542016e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-14 06:31:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: memory leakages with Ada? Date: 14 Mar 2002 08:31:24 -0600 Organization: LJK Software Message-ID: References: <3c90af1e@news.starhub.net.sg> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1016116286 5337 192.135.80.34 (14 Mar 2002 14:31:26 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Thu, 14 Mar 2002 14:31:26 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:21230 Date: 2002-03-14T08:31:24-06:00 List-Id: In article <3c90af1e@news.starhub.net.sg>, "Calvin Ow" writes: > Has Ada got any memory leakage problems like that of C? Ada95 has several additional capabilites to guard against memory leaks. It is possible to bypass most checks in Ada, so one could encounter just as much trouble in Ada if one attempted to transliterate a C program into Ada while retaining every aspect of the C design. > Especially with the use of Pragma calls to C? If you call from Ada to C, the portion that is written in C is fully empowered to leak all the memory it wants :-) Thus the question of memory leaks when doing that boils down to an issue of whether the C code is well written.