Top: f77 Up: 8 - Data
Previous: 8,6,2 - Field_References Next: 8,8 - Substrings
Section 8,7: Scalar_Reference
A scalar reference is a scalar variable, scalar record field, array
element, constant, character substring, or expression that resolves
into a single, typed data item. For example:
Data Declarations:
INTEGER INT, INTARY (10)
. . .
STRUCTURE /STRA/
INTEGER INTFLD, INTFLDARY (10)
END STRUCTURE
. . .
STRUCTURE /STRB/
CHARACTER*20 CHARFLD
INTEGER INTFLD, INTFLDARY (10)
STRUCTURE STRUCFLD
COMPLEX CPXFLD, CPXFLDARY (10)
END STRUCTURE
RECORD /STRA/ RECFLD, RECFLDARY (10)
END STRUCTURE
. . .
RECORD /STRB/ REC, RECARY (10)
Reference Examples:
INT --- Numeric variable
INTARY(1) --- Numeric array element
REC.INTFLD --- Numeric field
REC.INTFLDARY(1) --- Numeric element of an array field
CHARVAR(5:10) --- Substring expression of a character variable
REC.CHARFLD(5:10) --- Substring expression of a character field
Note: A scalar memory reference is the same as a scalar reference,
excluding constants, character substrings, and expressions.
Top: f77 Up: 8 - Data
Previous: 8,6,2 - Field_References Next: 8,8 - Substrings