Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!udel!princeton!phoenix!eliot From: eliot@phoenix.Princeton.EDU (Eliot Handelman) Newsgroups: comp.lang.lisp Subject: Re: STRUCTUREP Message-ID: <3269@idunno.Princeton.EDU> Date: 10 Oct 90 21:03:59 GMT References: <753@forsight.Jpl.Nasa.Gov> <1990Oct10.091722.4495@hellgate.utah.edu> <754@forsight.Jpl.Nasa.Gov> Sender: news@idunno.Princeton.EDU Organization: Shitson University, New Crapsey Lines: 26 In article <1990Oct10.091722.4495@hellgate.utah.edu>, moore%cdr.utah.edu@cs.utah.edu (Tim Moore) writes: > In article <753@forsight.Jpl.Nasa.Gov> gat@robotics.Jpl.Nasa.Gov (Erann Gat) writes: > >Is there any way in Common Lisp to test if an object is a structure? There > >doesn't seem to be a structurep function. > > ;> >E. ;> ;> Not portably. You can do this, though: >(defstruct structure) >(defstruct (foo (:include structure)) blah) >(structure-p (make-foo)) T Zetalisp, I think, did something like that automatically. the "structure" structure would have DOCUMENTATION as one of its slots, eg. (I've read most of the lisp machine manual, but I don't know too much about its internals, on the other hand.) --eliot