pTAL Reference Manual (H06.03+)
Structures
HP pTAL Reference Manual—523746-005
9-55
Array
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 9-43 on page 9-55 redefines the left byte of int_var as string_var.
Array
An array redefinition associates a new array 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 array.
range
lower-bound
is an INT constant expression (in the range -32,768 through 32,767) that
specifies the index (relative to the zeroth element) of the first array element you
want allocated.
Example 9-43. Simple Variable Redefinition
STRUCT .mystruct;
BEGIN
INT int_var;
STRING string_var = int_var; ! Redefinition
END;
type
identifier = previous-identifier ;
VST030.vsd
range
[ lower-bound : ]upper-bound
VST993.vsd










