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,LOTS_OF_MONEY 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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr27.news.prodigy.net.POSTED!4988f22a!not-for-mail From: Newsgroups: comp.lang.ada References: <44c7c3d3$0$47958$4fafbaef@reader3.news.tin.it> Subject: Re: Why people wants to complicate code with Ada.Unchecked_Deallocation? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Message-ID: NNTP-Posting-Host: 70.134.98.164 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr27.news.prodigy.net 1154015346 ST000 70.134.98.164 (Thu, 27 Jul 2006 11:49:06 EDT) NNTP-Posting-Date: Thu, 27 Jul 2006 11:49:06 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: T[OQB\CEBZUWSSD[N[O@_WH@YR_B@EXLLBWLOOAFJYWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM Date: Thu, 27 Jul 2006 15:49:06 GMT Xref: g2news2.google.com comp.lang.ada:5967 Date: 2006-07-27T15:49:06+00:00 List-Id: "Jeffrey R. Carter" wrote in message news:P7Rxg.1101345$xm3.664765@attbi_s21... > > It means that if a program won't run out of storage without unchecked > deallocation, why bother putting it in? On the other hand, if a program will > run out of storage without unchecked deallocation, it will fail unless you do > deallocate storage, so you probably do want and need to put it in. > I usually agree with you Jeff. In this case, we are in close agreement except on one point. Ada includes a storage-pool capability that allows for a wide range of storage management policies. I would expect that to be a better option in situations where there is a concern for dependable, predictbale storage management. That being said, I also find it uncommon for Ada designers to understand the storage-pool feature well enough to take advantage of it. Perhaps we need to put together a collection of storage pool management examples demonstrating how this feature of the language can be more effectively applied in a variety of circumstances. This could reduce the amount of unchecked operations on storage management. I am now wondering what storage management policies are used for the Charles libraries. Unchecked-deallocation? Richard Riehle