【发布时间】:2013-10-09 16:50:10
【问题描述】:
CL-USER> (defclass a () ())
CL-USER> (defclass b (a) ())
CL-USER> (make-instance 'b)
#<STANDARD-CLASS B>
我可以在我的实例 b 上调用什么谓词函数,如果它是从 a 继承的,它会返回 T?在脉络中:
CL-USER> (instanceof 'a *)
T
【问题讨论】:
标签: inheritance common-lisp clos