06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Scope and Association 15<br />

Scope<br />

Program entities are identified by names, labels, input/output unit numbers, operator symbols, or<br />

assignment symbols. For example, a variable, a derived type, or a subroutine is identified by its<br />

name.<br />

Scope refers to the area in which a name is recognized. A scoping unit is the program or part of a<br />

program in which a name is defined or known. It can be any of the following:<br />

• An entire executable program<br />

• A single scoping unit<br />

• A single statement (or part of a statement)<br />

The region of the program in which a name is known and accessible is referred to as the scope of<br />

that name. These different scopes allow the same name to be used for different things in different<br />

regions of the program.<br />

Association is the language concept that allows different names to refer to the same entity in a<br />

particular region of a program.<br />

This chapter contains information on the following topics:<br />

• “Scope”<br />

• “Unambiguous Generic Procedure <strong>Reference</strong>s”<br />

• “Resolving Procedure <strong>Reference</strong>s”<br />

• “Association”<br />

Program entities have the following kinds of scope (as shown in Table 15-1):<br />

• Global<br />

Entities that are accessible throughout an executable program. The name of a global entity<br />

must be unique. It cannot be used to identify any other global entity in the same executable<br />

program.<br />

15-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!