140. Internal procedures have access to variables from the host unless they are overridden by local variables.#

topic: Procedures

Note

This tip is a draft1.

An internal procedure can declare variables with the same names as the enclosing procedure, which can declare variables with the same names as module variables. Within a scope a name refers to the local variable. Variables from the host are accessible.



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.