A regular argument list has two sections: positional arguments and named arguments. Positional arguments must precede any named arguments. Preceding an argument with an identifier and :=
makes the argument a named argument. At runtime, the argument list is evaluated from left to right. If an argument is omitted from the argument list, the corresponding parameter must be optional. The value given in the optional parameter's declaration is substituted in the place of the omitted argument. Named arguments may not match paramarray parameters.
If an argument is a property, the property must be read-write or read-only, otherwise an error occurs. If the argument being passed is a Single
or a Double
and floating point error checking is on, then if at runtime the value is infinite or NaN, a System.NotFiniteNumberException
will be thrown.
,
NamedArgumentList |,
[ ArgumentExpression ]:
=
ArgumentExpression |,
Identifier :
=
ArgumentExpression