我想将通用函数保存为变量:
(defvar *gf* (make-instance 'standard-generic-function)
call-next-method
但是当添加一个方法时,我必须next-method-p
自己定义:
(add-method *gf*
(make-instane 'standard-method
:function (lambda (args next-methods)
(flet ((call-next-method () ...)
(next-method-p () ...))
(apply (lambda () ...) args)))))
如何调用定义方法call-next-method
?有没有更简单的方法来做到这一点?