TAL Reference Manual
Structures
TAL Reference Manual—526371-001
8-20
Example of Array Redefinition
Example of Array Redefinition
This declaration redefines an INT array as an INT(32) array:
STRUCT .s;
BEGIN
INT a[0:3];
INT(32) b[0:1] = a; !Redefinition
END;
Definition Substructure Redefinition
A definition substructure redefinition associates a new definition substructure with a
previous item at the same BEGIN-END level of a structure.
identifier
is the identifier of the new substructure.
lower-bound
is an INT constant expression (in the range -32,768 through 32,767) that specifies
the index (relative to the zeroth substructure occurrence) of the first substructure
occurrence you want allocated. Each occurrence is one copy of the substructure.
The default value is 0.
upper-bound
is an INT constant expression (in the range -32,768 through 32,767) that specifies
the index (relative to the zeroth substructure occurrence) of the last substructure
occurrence you want allocated. The default value is 0. To declare a single-
occurrence substructure, omit both bounds or specify the same value for both
bounds.
previous-identifier
is the identifier of a simple variable, array, substructure, or pointer previously
declared in the same structure. No index is allowed with this identifier.
VST0813.vsd
identifier
[ :
]
lower-
bound
upper-
bound
= ;
previous-
identifier
;
substructure-
layout
STRUCT