我收到以下错误试图编译一些代码时: Lambda list of method # is incompatible with that of the generic function INITIALIZE-INSTANCE. Method's lambda-list : (PAT::E) Generic-function's : (CCL::INSTANCE &REST CCL::INITARGS
我正在学习CLOS中的泛型函数。 由于我在教科书和在线中找到的例子类型,我感到非常困惑。这些例子总是使用有多个派遣的事实。根据参数类型,执行不同的计算。但是,为什么这些论据本身从未在例子中被使用? 实施例的代码从Wikipedia ; declare the common argument structure prototype
(defgeneric f (x y))
; define a