Re:JEP 295: Ahead-of-Time Compilation
by lispm on Friday October 28, 2016 @04:06AM
(#12813914)
Common Lisp has inheritance of methods, but it does not work on a class hierarchy directly. When a generic function gets called, the applicable methods are being ordered based on the classes of the arguments - not just one argument, but possibly many. A more specific method can call the next method. In some cases this is done automatically. This is inheritance, based on the class hierarchy.
CLOS also allows the developer to implement other inheritance mechanisms, by developing his own way to combine the methods of a generic function.
CLOS also allows the developer to implement other inheritance mechanisms, by developing his own way to combine the methods of a generic function.