100. An INTENT(OUT) argument is undefined at the beginning of a procedure#

topic: Procedures

Note

This tip is a draft1.

A non-allocatable INTENT(OUT) dummy argument is undefined at the beginning of a procedure. Although most compilers will set it to the value of the actual argument, you should declare the argument INTENT(IN OUT) to mandate this behavior.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.