pTAL Reference Manual (H06.03+)
Arrays
HP pTAL Reference Manual—523746-005
8-9
Nonstring Arrays
Nonstring Arrays
You can specify an initialization string when you declare an array:
INT .a[0:3] := [0,1,2,3];
The length of the initialization string must be less than or equal to the length of the
array.
Example 8-10. Declaring Nonstring Arrays With Constant Lists
INT .a[0:3] := [0,1,2]; ! OK: Init string is shorter than array
INT .a[0:3] := [0,1,2,3]; ! OK: Init string is right length
INT .a[0:3] := [0,1,2,3,4]; ! ERROR: Init string is too long
INT .a[0:3] := [%H1234567812345678%F]; !OK: Init string is right length










