Aleksandar Donev said:
> NAG for example has a POSIX binding (module), which includes their own
> version of ATEXIT, but this is what the manual says: "If the program
> terminates due to an error, or by executing a STOP statement or main
> program END statement, whether these soubroutines [atexit callbacks]
> will be invoked is undefined". What exactly "is undefined" is supposed
> to mean I am not sure.
It means that it was not defined.
It also means that you are looking at old (4.x or older) documentation.
ATEXIT was revised in 5.0:
"If the program terminates normally, all subroutines registered with
ATEXIT will be invoked in reverse order of their registration. Normal
termination includes using the F90_UNIX_PROC procedure EXIT, executing
a Fortran STOP statement or executing a main program END statement.
ATEXIT subroutines are invoked before automatic file closure.
If the program terminates due to an error or by using the F90_UNIX_PROC
procedure FASTEXIT, these subroutines will not be invoked."
Cheers,
--
...........................Malcolm Cohen, NAG Ltd., Oxford, U.K.
([log in to unmask])
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
|