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.

Specification Statements 5<br />

Examples<br />

The following example shows type declaration statements specifying the POINTER attribute:<br />

TYPE(SYSTEM), POINTER :: CURRENT, LAST<br />

REAL, DIMENSION(:,:), POINTER :: I, J, REVERSE<br />

The following is an example of the POINTER statement:<br />

TYPE(SYSTEM) :: TODAYS<br />

POINTER :: TODAYS, A(:,:)<br />

See Also<br />

• “Type Declaration Statements”<br />

• “Pointer Assignments”<br />

• “ALLOCATE Statement”<br />

• “Pointer Association”<br />

• “Pointer Arguments”<br />

• “ASSOCIATED”<br />

• “Deferred-Shape Specifications” for details on deferred-shape arrays<br />

• “NULL”, which can be used to disassociate a pointer<br />

• Table 5-1 for details on compatible attributes<br />

PRIVATE and PUBLIC Attributes and Statements<br />

The PRIVATE and PUBLIC attributes specify the accessibility of entities in a module. (These<br />

attributes are also called accessibility attributes.)<br />

The PRIVATE and PUBLIC attributes can be specified in a type declaration statement or a<br />

PRIVATE or PUBLIC statement, and take one of the following forms:<br />

Type Declaration Statement:<br />

type, [att-ls,] PRIVATE [, att-ls] :: entity [, entity]...<br />

type, [att-ls,] PUBLIC [, att-ls] :: entity [, entity]...<br />

Statement:<br />

PRIVATE [[::] entity [, entity]...]<br />

PUBLIC [[::] entity [, entity]...]<br />

type<br />

Is a data type specifier.<br />

att-ls<br />

Is an optional list of attribute specifiers.<br />

5-51

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

Saved successfully!

Ooh no, something went wrong!