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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 02:18:18 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!adsl-213-200-246-247.cybernet.CH!not-for-mail From: Vinzent 'Gadget' Hoefler Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada Date: Fri, 28 Nov 2003 11:16:31 +0100 Organization: JeLlyFish software Message-ID: References: <8urxb.19482$sb4.18182@newsread2.news.pas.earthlink.net> Reply-To: v.hoefler@acm.org NNTP-Posting-Host: adsl-213-200-246-247.cybernet.ch (213.200.246.247) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 1070014697 67072371 213.200.246.247 ([175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:3018 Date: 2003-11-28T11:16:31+01:00 List-Id: Dale Stanbrough wrote: >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), Precisely. >but unchecked_deallocation is a useful tool Yes, of course. >that is >used by many people, so I'm not sure how useful it is to say that >Ada never suffers from this problem, I didn't say that. I just wanted to point out that it might be a lot harder to do so. >simply by excluding a valid part of the language. Well, valid point. But what I was trying to say is that you can identify possibly problematic parts in the code if you see the line "with Ada.Unchecked_Deallocation;" in a source file in a relatively easy way. Of course, it doesn't mean that it isn't possible at all. Vinzent.