The Fore language specification does not allow for the use of parameters declared using the ParamArray keyword as named parameters.
An array should be indicated for a parameter specified using the ParamArray keyword. An array should be passed by a value.
Sub Test(Paramarray c: Array Of Double);
Begin
End Sub Test;
Sub UserProc;
Var
d: Array Of Double;
Begin
d := New Double[3];
Test(c := d);
End Sub UserProc;
When the specified code is compiled, the string Test(c := d); displays the following error: The ParamArray parameter cannot be used as a named parameter. To resolve the error, remove declaration of the parameter as a named one. This string should look as follows: Test(d);.
See also: