VTS allows a programmer to initialize the elements of a static array when the array variable is declared. To initialize the elements of a static array in this manner, follow the declaration with = <value>. This initialization will set every element in the array to <value>. Note that this initialization will only work when the array is first declared, and that the independent initialization of individual array elements is not yet supported.
A dynamic-array variable cannot be allocated, nor its elements initialized during declaration. This must be done in a script.
Examples of initializing static and not allocating or initializing dynamic arrays during declaration are given below.
[
AStaticArray [10] = 0;
BStaticArray [5][6] = 99;
CStaticArray [-10, 5][10, 100] = -2;
ADynamicArray; { Cannot be allocated or initialized here }
BDynamicArray; { Cannot be allocated or initialized here }
CDynamicArray; { Cannot be allocated or initialized here }
]