Re: memory management
- From: "David C. Hoos, Sr." <david.c.hoos.sr@xxxxxxxxx>
- Date: Wed, 25 May 2005 21:14:50 -0500
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: Martin Krischik
- Re: memory management
- From: Steve
- Re: memory management
- References:
- memory management
- From: alex goldman
- memory management
- Prev by Date: memory management
- Next by Date: Re: Gnat STORAGE_ERROR
- Previous by thread: memory management
- Next by thread: Re: memory management
- Index(es):
Relevant Pages
|