informaticsEn 2022-07-19 11:29:04
269

Lisp CLOS Method Combination

The standard method combination involves four kinds of methods:


  • Primary method It performs bulk of the work.
  • :around methods are run before anything else.
  • :before method is called before the primary method.
  • :after method is called after the primary method.


You can get the example:

https://gist.github.com/juan-reynoso/c7c99b3dae0bec76807098d9d0c63123

Further more information:

https://gigamonkeys.com/book/object-reorientation-generic-functions.html

https://www.algo.be/cl/documents/clos-guide.html#meth-comb

https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node287.html

Back to index