Re: Memory management clarification
- From: "Frank J. Lhota" <NOSPAM.lhota@xxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 13:57:09 GMT
Maciej Sobczak wrote:
Hi,
Trying to learn a bit of Ada I came across a statement that memory allocated from the pool will be implicitly reclaimed when the acces variable used to reference it goes out of scope.
No, that is not true. What is true is that if an access type goes out of scope, then the data allocated from the pool for that type will be reclaimed. See ARM 13.11 (18).
Most Ada implementations do not support garbage collection, and with such implementations, your examples would simply create a lot of garbage.
.
- Follow-Ups:
- Re: Memory management clarification
- From: Robert A Duff
- Re: Memory management clarification
- References:
- Memory management clarification
- From: Maciej Sobczak
- Memory management clarification
- Prev by Date: Re: Memory management clarification
- Next by Date: Re: Memory management clarification
- Previous by thread: Re: Memory management clarification
- Next by thread: Re: Memory management clarification
- Index(es):
Relevant Pages
|