(j3.2006) finalizing undefined entities

Jim Xia jimxia
Tue Mar 18 16:30:04 EDT 2008


j3-bounces at j3-fortran.org wrote on 03/18/2008 04:00:57 PM:

> 
> How about
> 
>          DEALLOCATE (pointer, stat=istat)
> 
> This would need to be done separately for each pointer; otherwise, 
> there is no 
> certainty that each valid target is deallocated.
> 
> Cheers,
> 
> John.


That works for pointers assigned to a target that is not eligible for 
deallocation.  However in cases where the pointer is un-initialized and is 
therefore with garbage value, specifying stat= is not really helpful.  The 
DEALLOCATE statement may cause the program to die.

Cheers,

Jim Xia

RL Fortran Compiler Test
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
Phone (905) 413-3444  Tie-line 313-3444
email: jimxia at ca.ibm.com
D2/YF7/8200 /MKM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20080318/237067ef/attachment.html 



More information about the J3 mailing list