Array Literal Expressions

Array expressions are inline array definitions used to set or pass an array of values to a method. Array expressions start with a [, have 0 or more entries seperated by a comma and are closed with ]. The type of an array expression depends on what it's assigned to, but when inferred an array of the common type of all members is used.

method TakeArray(x: array of Integer);

var y := [0,1,2,3,4.5]; // array of double