TAL Reference Manual
Structures
TAL Reference Manual—526371-001
8-18
Simple Variable Redefinition
Simple Variable Redefinition
A simple variable redefinition associates a new simple variable with a previous item at
the same BEGIN-END level of a structure.
type
is any data type except UNSIGNED.
identifier
is the identifier of the new simple variable.
previous-identifier
is the identifier of a simple variable, array, substructure, or pointer previously
declared in the same structure. You cannot specify an index with this identifier.
Usage Considerations
In a redefinition, the new item and the previous (nonpointer) item both must have a
byte address or both must have a word address. If the previous item is a pointer, the
data it points to must be word addressed or byte addressed to match the new item.
Example of Simple Variable Redefinition
This declaration redefines the left byte of INT_VAR as STRING_VAR:
STRUCT .mystruct;
BEGIN
INT int_var;
STRING string_var = int_var; !Redefinition
END;
VST0811.vsd
type
identifier
= ;
previous-identifier