pTAL Reference Manual (H06.03+)
Structures
HP pTAL Reference Manual—523746-005
9-59
Referral Substructure
Referral Substructure
A referral substructure redefinition associates a new referral substructure with a
previous item at the same BEGIN-END level of a structure.
identifier
is the identifier of the new substructure.
referral
is the identifier of a structure that provides the structure layout. You can specify any
previously declared structure (except the encompassing structure) or structure
pointer. If the previous structure has an odd-byte size, the compiler rounds the size
of the new substructure up so it has an even-byte size.
range
Example 9-46. Definition Substructure Redefinition
STRUCT mystruct;
BEGIN
STRUCT mysub1;
BEGIN
INT int_var;
END;
STRUCT mysub2 = mysub1; ! Redefine mysub1 as mysub2
BEGIN
STRING string_var;
END;
END;
STRUCT
range
( )
VST208.vsd
= ;
identifier
referral
previous-identifier
[ lower-bound : ]upper-bound
VST993.vsd










