forlang.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Specification Statements
                                             Up Contents Index Back
─────Specification Statements───────────────────────────────────────────────
 
     Specification statements define the attributes of variables,
     arrays, and subprograms.
 
     Statement             Purpose
 
     AUTOMATIC             Declares a variable on the stack, rather than
                           at a static memory location
 
     COMMON                Shares variables between two or more program
                           units
 
     DIMENSION             Identifies a variable as an array and
                           specifies the number of elements and
                           dimensions
 
     EQUIVALENCE           Specifies that two or more variables or
                           arrays share the same memory location
 
     EXTERNAL              Allows a user-defined subroutine or function
                           to be passed as an argument
 
     IMPLICIT              Changes the default typing for variables and
                           functions
 
     INTRINSIC             Allows a predefined function to be passed as
                           an argument
 
     MAP...END MAP         Within a UNION statement, delimits a group of
                           variable type declarations that are to be
                           ordered contiguously within memory
 
     NAMELIST              Declares a group name for set of variables to
                           be read or written in a single statement
 
     PARAMETER             Equates a constant expression with a name
 
     RECORD                Declares one or more variables of a user-
                           defined structure type
 
     SAVE                  Causes variables to retain their values
                           between invocations of the procedure in which
                           they are defined
 
     STRUCTURE             Defines a new variable type, composed
     ...END STRUCTURE      of a collection of other variable types
 
     Type:                 Specifies the type of user-defined names
     BYTE
     CHARACTER[*n]
     COMPLEX[*bytes]
     DOUBLE COMPLEX
     DOUBLE PRECISION
     INTEGER[*bytes]
     LOGICAL[*bytes]
     REAL[*bytes]
     RECORD /struct-name/
 
     UNION...END UNION     Within a STRUCTURE statement, causes
                           variables in two or more maps to occupy
                           the same memory location
                                    -♦-