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=-2.5 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, STOX_REPLY_TYPE autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c50f57c0c29b391b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.stueberl.de!proxad.net!usenet-fr.net!news.enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: memory management Date: Wed, 25 May 2005 21:14:50 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <1131064.rs72P29t4t@yahoo.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1117073741 34354 212.85.156.195 (26 May 2005 02:15:41 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 26 May 2005 02:15:41 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: "alex goldman" Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:11155 Date: 2005-05-25T21:14:50-05:00 There is no automatic deallocation of memory when an access object goes out of scope, unless the designated object is a controlled type. ----- Original Message ----- From: "alex goldman" Newsgroups: comp.lang.ada To: Sent: May 25, 2005 7:57 PM Subject: memory management > As I understood from reading the Ada tutorial for C/C++ programmers, > "access" is essentially like C++ smart pointer, except that you don't need > to do anything to dereference it. > > How will the following work: > > Record A contains "access" to record B; > record B contains "access" to record A. > > If I create an instance of one of them with "new", will it be destroyed when > "access" to it goes out of scope? > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada-france.org > http://www.ada-france.org/mailman/listinfo/comp.lang.ada > >