TARGET
Purpose
The TARGET statement specifies the TARGET attribute of an entity. An object with the TARGET attribute may have a pointer associated with it.
Syntax
Rules
- If a data object has the TARGET attribute, then all of the data object's nonpointer subobjects will also have the TARGET attribute.
- A data object that does not have the TARGET attribute cannot be associated with an accessible pointer.
- A target cannot appear in an EQUIVALENCE statement.
A target cannot be an integer pointer or a pointee.
| ALLOCATABLE 1 | INTENT | SAVE |
| ASYNCHRONOUS | OPTIONAL | STATIC 3 |
| AUTOMATIC 3 | PRIVATE | VALUE 1 |
| DIMENSION | PROTECTED 1 | VOLATILE |
| CONTIGUOUS 2 | PUBLIC | |
|
Notes:
|
||
Examples
REAL, POINTER :: A,B
REAL, TARGET :: C = 3.14
B => C
A => B ! A points to C
