2013-10-03 13 views

risposta

8

Classe nomi sono anche di tipo nomi, in modo da:

(typep * 'a) 

Vedi Integrazione tipi e classi: http://clhs.lisp.se/Body/04_cg.htm

Oppure si potrebbe fare questo:

(defmethod is-an-a-p ((x a)) 
    t) 
(defmethod is-an-a-p ((x t)) 
    nil) 
Problemi correlati