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,b99897135d6631cc X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news-peer-lilac.gradwell.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada References: <40d15023$1_1@baen1673807.greenlnk.net> <2jnh22F12nvieU2@uni-berlin.de> Subject: Re: memory management and productivity Date: Mon, 21 Jun 2004 09:29:12 +0100 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: <40d69b1c$1_1@baen1673807.greenlnk.net> X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net NNTP-Posting-Date: 21 Jun 2004 08:29:29 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1087806569 news.gradwell.net 58818 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:1733 Date: 2004-06-21T08:29:29+00:00 List-Id: "Ole-Hjalmar Kristensen" wrote in message news:wvbrsmcp2uqd.fsf@europa1.Norway.Sun.COM... > > In Ada, when an object goes out of scope (assuming it has been created > > in the stack and not with the "new" operator), it's automatically > > finished so you have one less thing to care about. > > This is exactly the same as C++. I would say that Ada and C++ are > more or less on equal footing when it comes to garbage collection in > practice. No! Please try the example I posted - in Ada an access to a controlled object is automatically finalized - this is different (and better!) than C++. Cheers -- Martin