Error Messages/40255

< Error Messages
Revision as of 20:02, 1 February 2010 by AManandhar (talk | contribs) (Created page with '= Error Text = In call to function My_sum, the second parameter should be specified by name. After one parameter is supplied by name, any following parameters must also be spe…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Error Text

In call to function My_sum, the second parameter should be specified by name. After one parameter
is supplied by name, any following parameters must also be specified by name.

Cause

In a function call, after specifying one of the parameters by its name, all the following parameters to the function needs to be specified by their names. You specified one of the function parameters by its name, but did not specify all the following parameters by their names.

The following example would trigger this error as the parameter name, Z, is not recognized.

Function parameter declaration for My_sum:
{X, Y: number)

Function call:
My_sum(X: 5, 9)

Remedies

Call the function by specifying the parameter names to all the parameters following the named parameter.

Comments


You are not allowed to post comments.