DIMENSION attribute
The dimension attribute specifies
the number of dimensions of an array and upper and lower bounds
of each.
Bounds that are nonrestricted expressions
are evaluated and converted to FIXED BINARY
(with a precision corresponding to the CMPAT compiler option)
when storage is allocated for the array.
The extent is the number of integers between,
and including, the lower and upper bounds.
 .-,---------.
V |
>>-+-----------+--(----| bound |-+--)--| bound: |--------------->
'-DIMENSION-'
>--+-------------------+--+-| upper-bound |-+------------------><
+-| lower-bound |-:-+ '-*---------------'
'-*:----------------'
lower-bound:
.-1-------------------------------.
|--+---------------------------------+--------------------------|
'-expression--+-----------------+-'
'-REFER(variable)-'
upper-bound:
|--expression--+-----------------+------------------------------|
'-REFER(variable)-'
|
Abbreviation: DIM
If the DIMENSION keyword is omitted, the dimension must immediately
follow the name (or the parenthesized list of names) in the declaration.
The number of bounds specifications indicates the number of dimensions
in the array, unless the declared variable is in an array of structures
or unions. In this case it inherits dimensions from the containing
structure or union.
The bounds specification indicates the bounds as follows:
- If only the upper bound is given, the lower bound defaults to
1.
- The lower bound must be less than or equal to the upper bound.
- An asterisk (*) specifies that the lower and/or the upper bound
is taken from the argument associated with the parameter.
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)