Tuesday, March 9, 2010

Object in lisp

Auxiliary method
(defmethod method :before/:after/:around ((object object.type) &rest restarg)
(foo))

Before: run before the most specific primary method and run in most-specific-first-order
can be used to do any preparation needed to ensure that the primary method can run.
After: run after the primary methods in most-specific-last order

Before + After provide a sort of nested wrapping around the core functionality.

No comments:

Post a Comment