Re: Memory management clarification



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.
.