Name resolution and function precedence
It is possible for two different function libraries to contain functions with the same name. If this happens, the library loaded with the highest precedence is used. An additional value can be added to the registration key to define the precedence of the component:
HKEY_LOCAL_MACHINE\Software\SPSS\MR Function Library\<comp>
Parameters
Value name
Precedence.
Value
Any integer value between 0 and 99. The default is 0 and indicates no precedence over other components.
More information
Functions in components with higher precedence are called rather than functions in other components. If two components have the same precedence, the first component loaded has the higher precedence. The order in which components are loaded is arbitrary.
By default, the
UNICOM Intelligence Function Library is given a precedence of 99, indicating that its procedures are always called in preference to other functions of the same name in different components.
The Evaluate component recognizes aggregate expressions, and so the function names AVG, BASE, COUNT, SUM, MIN, MAX, and STDEV are reserved. If functions are defined in function libraries with the same names, Evaluate gives the aggregate function names highest precedence.
See also