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,FREEMAIL_FROM autolearn=ham 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!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 26 May 2005 08:21:07 -0500 From: "Steve" Newsgroups: comp.lang.ada References: <1131064.rs72P29t4t@yahoo.com> Subject: Re: memory management Date: Thu, 26 May 2005 06:21:27 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Message-ID: <3eadnU51CK_eUAjfRVn-hQ@comcast.com> NNTP-Posting-Host: 24.22.63.157 X-Trace: sv3-kaWhd78KoNDX2IGYhey0qp1cwNyyNG7D1h0RtmpvqpedxFwU7d0TR+A97Zp24kQrBfXHU0Z8DFGUQjF!dmwzHVxb4uOWkwV4yQBluIMImYsjVGhamvgTJIwF2vi5kv6hSPOFlwQJAG4S X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:11165 Date: 2005-05-26T06:21:27-07:00 List-Id: Unless the access type goes out of scope in which case the memory is automatically recovered (memory pools and all). Steve (The Duck) "David C. Hoos, Sr." wrote in message news:mailman.131.1117073739.24457.comp.lang.ada@ada-france.org... > 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 >>