(j3.2006) Finalization and STOP, ALL STOP

Aleksandar Donev donev1
Thu May 14 22:18:23 UTC 2009


Van Snyder wrote:
> Should an allocatable object be deallocated when a STOP statement is
> executed? 
I believe the decision has been made for F2003, and we have not changed 
it, that there is no duty to do deallocation and finalization upon STOP. 
It would be difficult to do since one can do a STOP anywhere and there 
may be many object lying around. By contrast, when you execute a RETURN 
you know exactly which objects are in that local scope that may need to 
be freed/finalized.
ALL STOP is even worse---no cleanup of any sort is required.
Aleks



More information about the J3 mailing list