Difference between revisions of "Error Messages/41128"
(Created page with "= Example Warning Text = When calling Evaluate(..) to invoke the function ''F'', 3 parameters for ''F'' have been supplied, but the function expects only 2 parameters. T...") |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Example warning text == | |
− | |||
− | = Cause = | + | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> |
+ | When calling Evaluate(..) to invoke the function 'F', 3 parameters for 'F' have been supplied, | ||
+ | but the function expects only 2 parameters. The extra parameters will be ignored. | ||
+ | </pre> | ||
+ | |||
+ | == Cause == | ||
Given a [[handle]] to a function, the function [[Evaluate]] can be used to call the function. The 2nd, 3rd, ..., parameters to [[Evaluate]] supply the parameters to be passed to the function when it is called. This warning occurs when you supply more parameters than the function accepts. | Given a [[handle]] to a function, the function [[Evaluate]] can be used to call the function. The 2nd, 3rd, ..., parameters to [[Evaluate]] supply the parameters to be passed to the function when it is called. This warning occurs when you supply more parameters than the function accepts. | ||
Line 10: | Line 14: | ||
For example, suppose you have this function: | For example, suppose you have this function: | ||
− | :Function F(x,y) | + | :<code>Function F(x, y)</code> |
And you attempt to call it as follows: | And you attempt to call it as follows: | ||
− | + | :<code>MetaVar fn := Handle(F);</code> | |
− | + | :<code>Evaluate(fn, 1, 2, 3)</code> | |
− | In the call to [[Evaluate]], three parameters were supplied (1,2,3), even though ''F'' expects only two. Hence, the warning occurs. | + | In the call to [[Evaluate]], three parameters were supplied (1, 2, 3), even though ''F'' expects only two. Hence, the warning occurs. |
− | |||
− | |||
+ | == Ignoring == | ||
If the warning is ignored, the extra parameters are ignored. | If the warning is ignored, the extra parameters are ignored. | ||
− | = See Also = | + | == See Also == |
− | |||
* [[Evaluate]] | * [[Evaluate]] | ||
* [[Handle]] | * [[Handle]] | ||
+ | * [[MetaVar]] | ||
+ | * [[Function calls and parameters]] | ||
+ | * [[IgnoreWarnings]] |
Latest revision as of 23:16, 10 March 2016
Example warning text
When calling Evaluate(..) to invoke the function 'F', 3 parameters for 'F' have been supplied, but the function expects only 2 parameters. The extra parameters will be ignored.
Cause
Given a handle to a function, the function Evaluate can be used to call the function. The 2nd, 3rd, ..., parameters to Evaluate supply the parameters to be passed to the function when it is called. This warning occurs when you supply more parameters than the function accepts.
For example, suppose you have this function:
Function F(x, y)
And you attempt to call it as follows:
MetaVar fn := Handle(F);
Evaluate(fn, 1, 2, 3)
In the call to Evaluate, three parameters were supplied (1, 2, 3), even though F expects only two. Hence, the warning occurs.
Ignoring
If the warning is ignored, the extra parameters are ignored.
See Also
Comments
Enable comment auto-refresher