Re: Memory management clarification
- From: "Frank J. Lhota" <NOSPAM.lhota@xxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 18:11:09 GMT
Robert A Duff wrote:
"Frank J. Lhota" <NOSPAM.lhota@xxxxxxxxxxx> writes: That's not quite true, either. Most implementations use a global heap by default, and never automatically reclaim memory. If you use a Storage_Size clause on a local access type, then what you say is true. But local access types are not very useful.
You're right, I left out the Storage_Size condition.
Although local access types are very rare, I have seen code where a local access type is used to create a temporary structure that is used for the subprogram call, then conveniently goes away when the subprogram completes. So I wouldn't say that local access types are not very useful, just not very common.
.
- References:
- Memory management clarification
- From: Maciej Sobczak
- Re: Memory management clarification
- From: Frank J. Lhota
- Re: Memory management clarification
- From: Robert A Duff
- Memory management clarification
- Prev by Date: Re: Memory management clarification
- Next by Date: Re: Help needed for ada package
- Previous by thread: Re: Memory management clarification
- Next by thread: Re: Memory management clarification
- Index(es):