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-16 12:20:12 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!deine.net!freenix!fr.clara.net!heighliner.fr.clara.net!opentransit.net!newsfeed.mesh.ad.jp!uunet!osa.uu.net!dfw.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: memory leakages with Ada? Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Sat, 16 Mar 2002 20:18:31 GMT References: <3c90af1e@news.starhub.net.sg> <3c91bfa3.1987537@news.demon.co.uk> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:21341 Date: 2002-03-16T20:18:31+00:00 List-Id: DPH writes: > >I have to remember to say: > > > >delete[] p; > > No you don't... you just write it with Borland C++ Builder 5 or better > with CodeGuard turned on, and CodeGuard will complain about it all > over the place. I've never used Borland C++ Builder 5, but I don't believe it can complain about this sort of thing at compile time in the general case, because it is impossible to distinguish a pointer-to-thing from a pointer-to-array-of-things. - Bob