From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: memory management
Date: Thu, 26 May 2005 06:21:27 -0700
Date: 2005-05-26T06:21:27-07:00 [thread overview]
Message-ID: <3eadnU51CK_eUAjfRVn-hQ@comcast.com> (raw)
In-Reply-To: mailman.131.1117073739.24457.comp.lang.ada@ada-france.org
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." <david.c.hoos.sr@ada95.com> 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" <hello@spamm.er>
> Newsgroups: comp.lang.ada
> To: <comp.lang.ada@ada-france.org>
> 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
>>
next prev parent reply other threads:[~2005-05-26 13:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-26 0:57 memory management alex goldman
2005-05-26 2:14 ` David C. Hoos, Sr.
2005-05-26 13:21 ` Steve [this message]
2005-05-26 18:40 ` alex goldman
2005-05-28 2:13 ` Steve
2005-05-28 5:19 ` Jeffrey Carter
2005-05-28 14:48 ` Steve
2005-05-26 18:47 ` Pascal Obry
2005-05-27 14:33 ` Martin Krischik
2005-05-26 12:10 ` Robert A Duff
2005-05-27 14:31 ` Martin Krischik
2005-05-28 11:44 ` Robert A Duff
2005-05-28 13:03 ` Simon Wright
2005-05-31 12:04 ` Robert A Duff
2005-06-02 15:42 ` Thomas Maier-Komor
2005-06-02 17:05 ` Robert A Duff
2005-06-03 1:41 ` Steve
2005-06-03 10:12 ` alex goldman
2005-06-13 4:01 ` Dave Thompson
-- strict thread matches above, loose matches on Subject: below --
2005-04-19 20:30 Memory_Management Anh Vo
2005-04-19 1:39 Memory_Management Bini
2005-04-19 9:18 ` Memory_Management Duncan Sands
2005-04-20 1:06 ` Memory_Management Bini
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox