Defadvice and methods
Hi. I'm trying to attach a piece of :after advice to initialize-instance. I need to use advice because there's already an after method for this initialize instance specialization in another package, and it's for debugging purposes. What is the proper way to write this? In particular, how do I indicate &rest in the specialization portion? According to Lispworks, the lambda list for initialize-instance is (INSTANCE &REST INITARGS &KEY &ALLOW-OTHER-KEYS) (lw:defadvice ((method initialize-instance (class-name <what goes here?>)) assign-wmo-id :after) (self) (setf (gethash (get-next-wmo-id) *wm-instances*) self)) I've tried various incantations of the method dspec above, adding &rest and other things, but Lispworks always tell me: Undefined function (METHOD INITIALIZE-INSTANCE (STANDARD-KB-OBJECT T T)) in form (LISPWORKS:DEFADVICE (METHOD INITIALIZE-INSTANCE (STANDARD-KB-OBJECT T T))) Thanks for the help. David E. Young Bloodhound Software, Inc. For wisdom is more precious than rubies, and nothing you desire can compare with her. -- Prov. 8:11 "But all the world understands my language." -- Franz Josef Haydn (1732 - 1809) This email message is for the sole use of the intended recipients(s) and may contain confidential and privileged information of Bloodhound Software, Inc.. Any unauthorized review, use, disclosure is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.