(j3.2006) VALUE attribute question

Bill Long longb
Thu Apr 30 11:33:15 EDT 2015


If a dummy argument has the VALUE attribute, variable used in the procedue is often a temp copy of the actual argument.  If the type has a FINAL routine, is the temp supposed to he finalized at the end of the procedure execution?  I don?t see where the standard says that happens, but the temp seems similar to a local variable of the procedure and some of those do get finalized at the end of the procedure execution.   Of course, if the dummy argument with VALUE is never defined in the procedure, there is no reason to make a temp copy (an obvious optimization if the argument is an array), and in that case finalization would be a bad idea.   It?s not clear how we would say ?only in the case where a temp is made? in the standard.

Cheers,
Bill

Bill Long                                                                       longb at cray.com
Fortran Technical Suport  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the J3 mailing list