Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!ucbvax!pasteur!yew.Berkeley.EDU!faustus From: faustus@yew.Berkeley.EDU (Wayne Christopher) Newsgroups: comp.lang.lisp Subject: Finding the class of an object in CLOS Message-ID: <18732@pasteur.Berkeley.EDU> Date: 24 Oct 89 03:46:02 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: faustus@yew.Berkeley.EDU () Organization: University of California at Berkeley Lines: 9 I know the type-of operator isn't guaranteed to return the most specific type of an object in Common Lisp for efficiency reasons, but this can sometimes be a real pain in CLOS. For instance, I can't define a print-object function for a superclass that uses the name of the subclasses, since type-of always returns pcl::iwmc-class. Is there any way to get around this, aside from defining a get-object-type method for every class I define? Wayne Christopher