[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: CommonLoops.pa@Xerox.COM
- Subject: subtypep
- From: janson@ATHENA.MIT.EDU
- Date: Tue, 21 Nov 89 18:48:36 EST
- Redistributed: CommonLoops.pa
i am using franz-allegro common lisp: "3.1.beta.28 [DEC 3100] (8/3;8/7/89)"
the version of PCL is as supplied by them.
i have been attempting to use subtypep to determine whether two classes are
related, but it has not performed as i had expected it to.
under "Integrating Types and Classes" in the 88-002R document it says:
that (subtypep <class1> <class2>) will return t t if either <class1> is a
subclass of <class2> or they are the same class. shouldnt this mean that
under the following circumstances subtypep should by returning t ?
<cl> (pcl:defclass test nil nil)
<cl> (pcl:defclass subtest (test) nil)
<cl> (subtypep 'subtest 'test)
<cl> (subtypep (pcl:find-class 'subtest) (pcl:find-class 'test))
i did locate an un-exported function subclassp which does what i would like.
should i come to depend on it?
- From: email@example.com (Steve Haflich)