12.4 Array constructors

When a dynamic array constant must be entered in an expression, an array constructor can be given. An array constructor is a comma separated list of expressions enclosed in square brackets. The result type of each expression in the list must be compatible to the array element type.

_________________________________________________________________________________________________________
Set constructors

--array- constructor- [--|-------------]-----------------------------
                    -|expression---
                     ----, -----
____________________________________________

The empty array is denoted by [], and it can be assigned to any type of dynamic array.

The following are valid array constructors:

['yesterday,'today','tomorrow']
[ 1, 2, 4, 9, 10]
[ 2, 3*2, 6*2, 9*2 ]

The second and third expression are potentially sets. The compiler must be able to determine whether the result needs to be a set or an array.