you could call the
Add
procedure with the statement
Add([5, 7, I, I + J]);
This is equivalent to
var Temp: array[0..3] of Integer;
...
Temp[0] := 5;
Temp[1] := 7;
Temp[2] := I;
Temp[3] := I + J;
Add(Temp);
Open array constructors can be passed only as value or const parameters. The expressions in a constructor must
be assignment-compatible with the base type of the array parameter. In the case of a variant open array parameter,
the expressions can be of different types.
Dostları ilə paylaş: