OSF DCE Application Development Guide--Core Components
Interface Definition Language
/* [in, out] */ idl_long_int fa3[][6][4]
17.14.5.3.2 The max_is Attribute
The max_is attribute is used to specify the variables from which the values of one or
more upper bounds of the array are obtained at runtime. If any dimension of an array has
an unspecified upper bound, the array must have a max_is or size_is attribute. A
variable must be identified for each dimension in which the upper bound is unspecified.
In a max_is attribute, the value in the identified variable specifies the maximum array
index in that dimension. An array with one or more unspecified upper bounds may have
a max_is attribute or a size_is attribute, but not both.
The max_is attribute is for use with conformant arrays. The following is an example of
the max_is attribute:
/* Assume values of variables are as follows:
long a = 10;
long b = 20;
long c = 30;
*/
long [max_is(a)] f1[]; /* f1[0..10] /*
long [max_is(a)] f2[][4]; /* f2[0..10][0..3] */
long [max_is(a,b)] f3[][]; /* f3[0..10][0..20] */
long [max_is(,b)] f4[2][]; /* f4[0..1][0..20] */
long [max_is(a,,c)] f5[1..*][2..9][3..*]; /* f5[1..10][2..9][3..30] */
long [max_is(a,b,)] f6[1..*][2..*][3..8]; /* f6[1..10][2..20][3..8] */
17.14.5.3.3 The size_is Attribute
The size_is attribute is used to specify the variables from which the values of the element
counts for one or more dimensions of the array are obtained at runtime. If any dimension
of an array has an unspecified upper bound, the array must have a max_is or size_is
attribute. A variable must be identified for each dimension in which the upper bound is
unspecified. In a size_is attribute, the value in the identified variable specifies the
number of elements in that dimension. An array with one or more unspecified upper
bounds may have a max_is attribute or a size_is attribute, but not both.
The size of a dimension is defined as the upper bound, minus the lower bound, + 1.
The size_is attribute is for use with conformant arrays. The following is an example of
the size_is attribute:
124245 Tandem Computers Incorporated 17− 37