Re: memory management
- From: "Steve" <nospam_steved94@xxxxxxxxxxx>
- Date: Thu, 26 May 2005 06:21:27 -0700
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@xxxxxxxxx> wrote in message
news:mailman.131.1117073739.24457.comp.lang.ada@xxxxxxxxxxxxxxxxx
> 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@xxxxxxxx>
> Newsgroups: comp.lang.ada
> To: <comp.lang.ada@xxxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxxx
>> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
>>
.
- Follow-Ups:
- Re: memory management
- From: Pascal Obry
- Re: memory management
- From: alex goldman
- Re: memory management
- References:
- memory management
- From: alex goldman
- Re: memory management
- From: David C. Hoos, Sr.
- memory management
- Prev by Date: Re: memory management
- Next by Date: Direct_IO and files of tagged types
- Previous by thread: Re: memory management
- Next by thread: Re: memory management
- Index(es):
Relevant Pages
|