getMethodSpecializers
getMethodSpecializers(s_genericFunction) =>l_classNames/nil
Description
Returns the specializers of all methods currently associated with the given generic function, in a list of class names. The first element in the list is t if there is a default method.
Arguments
Value Returned
|
List of method specializers that are currently associated with s_genericFunction. The first element in the list is |
|
Examples
defmethod( met1 ((obj number)) println(obj))
=> t
getMethodSpecializers(’met1)
=>(number)
defclass( XGeometricObj () () )
=> t
defgeneric( whoami (obj) printf("Generic Object\n"))
=> t
defmethod( whoami (( obj XGeometricObj)) printf( "XGeometricObj, which is also a\n"))
=> t
getMethodSpecializers(’whoami)
=> (t XGeometricObj)
getMethodSpecializers(’car)
=> *Error* getMethodSpecializers: first argument must be a generic function - car
nil
getMethodSpecializers(2)
=> *Error* getMethodSpecializers: argument #1 should be a symbol (type template = "s") - 2
Related Topics
Return to top