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-Thread: 103376,902bff0abea1083d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!atl-c05.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!bigfeed3.bellsouth.net!news.bellsouth.net!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Why people wants to complicate code with Ada.Unchecked_Deallocation? Date: Wed, 26 Jul 2006 20:56:07 +0100 Organization: Pushface Message-ID: References: <44c7c3d3$0$47958$4fafbaef@reader3.news.tin.it> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1153943767 28263 62.49.19.209 (26 Jul 2006 19:56:07 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 26 Jul 2006 19:56:07 +0000 (UTC) Cancel-Lock: sha1:N5hqzUimdDEcFKcqspfBTvn9P6c= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:5950 Date: 2006-07-26T20:56:07+01:00 List-Id: fabio de francesco writes: > The following statement is from Cohen's "Ada as a second language": > > "Ada.Unchecked_Deallocation must be used with caution. As we shall > see, it can lead to subtle but devastating errors. If storage for > allocated object is plentiful, there is no point in complicating the > program to keep track of which allocated objects are no longer > needed". In my world, storage is not plentiful, so we absolutely must keep track of it! (but I certainly would _not_ bother over-much for an off-line tool that runs to completion and isn't a heavy memory user anyway).