sorted-applicable-methods

Returns all the methods in a generic function that are applicable to sample arguments, sorted in order of specificity.

Returns two sequences that, taken together, contain the methods in generic-function that are applicable to the sample-argssorted-methods contains methods that are more specific than every method that follows them.  unsorted-methods begins at the first point of ambiguity; it contains the methods that cannot be sorted.

The sequences returned should never be destructively modified.  Doing so may cause unpredictable behavior.

If generic-function is sealed, an implementation may choose not to return two sequences of methods, but instead signal an error of type <sealed-object-error>.

Exported from

Arguments

generic-functionAn instance of <generic-function>.
#rest sample-argsInstances of <object>.

Values

sorted-methodsAn instance of <list>.  Elements of the list are instances of <method>.
unsorted-methodsAn instance of <list>.  Elements of the list are instances of <method>.
The class of errors that are generated by sealing violations.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of functions that are made up of a number of individual methods.
The class of all Dylan objects.
The class of linked lists.