Aleksandar Donev said:
> I just found the sentence in the TR the says:
>
> "Deallocation of a variable containing an ultimate allocatable array
> component automatically deallocates all such components of the variable that
> are currently allocated."
>
> Is there a similar rule in F95 for pointer components, i.e. does
> deallocation or nullification (if a pointer) of a derived data type object
> containing a pointer component automatically nullify that component?
No there is not.
Such a rule would not make sense for pointers, since multiple pointers
can point to a single object.
However, systems with automatic garbage collection can reclaim storage
that can no longer be accessed. Several vendors (us included) offer
this feature.
Cheers,
--
...........................Malcolm Cohen, NAG Ltd., Oxford, U.K.
([log in to unmask])
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
|