TAL Reference Manual

Data Representation
TAL Reference Manual526371-001
3-18
Examples of Constant Lists
3. This example initializes a STRING array with a repetition constant list:
STRING b[0:79] := 80 * [" "];
4. This example initializes an INT(32) array with a mixed constant list containing
values of the same data type. The diagram shows how the compiler allocates
storage for the variable and the constant list that initializes the variable:
%20D
C[4]
VST0311.vsd
"a"
"b"
"c"
1D
3D
"Y""X"
" "
"Z"
"d"
C[0]
C[1]
C[2]
C[3]
INT(32) c[0:4] :=
["abcd", 1D, 3D, "XYZ", %20D];
!Mixed constant list