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,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-28 00:48:07 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!lon-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada References: <8urxb.19482$sb4.18182@newsread2.news.pas.earthlink.net> User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X) Message-ID: Date: Fri, 28 Nov 2003 08:46:30 GMT NNTP-Posting-Host: 144.132.42.201 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1070009190 144.132.42.201 (Fri, 28 Nov 2003 19:46:30 EST) NNTP-Posting-Date: Fri, 28 Nov 2003 19:46:30 EST Organization: BigPond Internet Services Xref: archiver1.google.com comp.lang.ada:3014 Date: 2003-11-28T08:46:30+00:00 List-Id: Vinzent 'Gadget' Hoefler wrote: > Hyman Rosen wrote: > > [dangling references] > >Just deallocate the object to which the pointer points. > > Show me. Without using Unchecked Deallocation. > > As the name "Unchecked ..." implies this is dangerous and using it > will trigger the alarm to everybody who sees it. Ada has been designed to get rid of a lot of dangling pointers that inflict languages like C (such as returning pointers to stack based variables), but unchecked_deallocation is a useful tool that is used by many people, so I'm not sure how useful it is to say that Ada never suffers from this problem, simply by excluding a valid part of the language. Dale -- dstanbro@spam.o.matic.bigpond.net.au