/sys$common/syshlp/helplib.hlb FORTRAN, Data, Scalar Reference *Conan The Librarian (sorry for the slow response - running on an old VAX) |
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 --- Is a numeric variable. INTARY(1) --- Is a numeric array element. REC.INTFLD --- Is a numeric field. REC.INTFLDARY(1) --- Is a numeric element of an array field. CHARVAR(5:10) --- Is a substring expression of a character variable. REC.CHARFLD(5:10) --- Is a substring expression of a character field. Note: A scalar memory reference is the same as a scalar reference, excluding constants and expressions.
|