TAL Reference Manual

Equivalenced Variables
TAL Reference Manual526371-001
10-9
Example of Equivalenced Referral Structure
Declaration
Example of Equivalenced Referral Structure Declaration
The following example declares a referral structure equivalent to a previously declared
definition structure:
Equivalenced Structure Pointer
An equivalenced structure pointer declaration associates a new structure pointer with a
previously declared variable.
STRING
is the STRING attribute.
INT
is the INT attribute.
VST1009.vsd
.
.
.
ptr to D_STR
ptr to R_STR
D_STR
.
.
.
R_STR
Secondary area
.
.
.
STRUCT .r_str (tmp) = d_str;
STRUCT .d_str;
BEGIN
STRING name[0:19];
STRING address [0:49];
END;
STRUCT tmp (*);
BEGIN
INT name[0:9];
INT address[0:24];
END;
VST1010.vsd
(
[
index
]
+
offset
-
=
referral
identifier
STRING
previous-identifier
;
)
,
.
.EXTINT