Class Method constitutes part of Muq's support for the Muq Object System model of object-oriented computation. MOS methods are not compiled functions (as they are in many other models of object-oriented computation): They are data objects which contain a compiled function, along with information used by the genericFunction ("message-passing") machinery to decide when and how to invoke that compiled function.
Class Method adds the following properties to those of Class Index:
$S.qualifier: NIL, :before :after :around (for std method combination). $S.methodFunction: Compiled function implementing method. $S.genericFunction: Compiled-function for generic to which method belongs. $S.lambdaList: Description of args for compiledFn. $S.requiredArgs: Count of required arguments for compiledFn.
Note: For convenience, the $S properties are also available in the public (default) propdir.
Class Method instances also contain an array of slots, one for each required argument: See section getMethodSlot, See section setMethodSlot.
See section makeMethod.
Go to the first, previous, next, last section, table of contents.