ilSpecMoreSpecificp
ilSpecMoreSpecificp(
g_genericFunctionObj
s_spec1
s_spec2
s_specArg
)
=> t / nil
Description
Checks if spec1 is more specific than spec2. You need to define all required ilSpecMoreSpecificp methods for all existing custom specializers (so that the system can find a method to compare any pair of custom specializers).
Arguments
|
g_genericFunctionObj
|
|
|
An instance of the ilGenericFunction class or a proxy class derived from it. Using proxy classes is one way of associating custom specializers with generic functions. The SKILL Language User Guide describes how to define proxy classes to define a group of generic functions to use common specializers.
|
|
s_specObj1
|
An instance of the specializer class to be compared.
|
|
s_specObj2
|
The second instance of the specializer class to be compared.
|
|
s_specArg
|
Specifies the specializer argument
|
Value Returned
|
t
|
spec1 is more specific than spec2.
|
|
nil
|
The custom specializer definition is inconsistent.
|
Examples
(defmethod ilSpecMoreSpecificp (gf (spec1 classSpec1) (spec2 classSpec2)
args)spec1->value > spec2->value)
Related Topics
Generic Specializers
Examples of How to use Custom Specializers in SKILL++ Methods
Return to top