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,252335f59f63d4d5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-13 14:19:44 PST Path: supernews.google.com!sn-xit-02!supernews.com!wn4feed!worldnet.att.net!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mail From: "Singlespeeder" Newsgroups: comp.lang.ada Subject: Re: pointers and pointers. Date: Wed, 13 Dec 2000 22:16:30 -0000 Organization: BT Internet Message-ID: <918s98$5d3$1@uranium.btinternet.com> References: <90upch$fio$1@nnrp1.deja.com> NNTP-Posting-Host: host62-7-54-158.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.lang.ada:3097 Date: 2000-12-13T22:16:30+00:00 List-Id: > > Any text book on Ada will have lots of examples of the use > of access types. That is where you should look. I think you'll find that most text books use the linked list example, but completely fail to mention how you should deallocate the memory grabbed by the new operator when you remove the item from the list. I've had lists that grow to 40MB before I empty them, so I want to be sure that the memory is being deallocated properly. Do I have to use an unchecked_deallocation to do this or is there a neater (better) way? Any expansion on this vague topic over and above what the text books say would be gladly received, because quite frankly most of them give rise to more FAQs than they answer. I learnt what I know (which isn't a lot) by looking at the source examples for the GNAT implementation of the unbounded_strings and generic queue. Any explanations in Ada 83 terms rather than Ada 95 would be preferred by me. Nick singlespeeder@32sixteen.com