Article View: comp.lang.clos
Article #500Subclassing clos:standard-class
From: Ralph Hill
Date: Fri, 12 Apr 1991 13:54
Date: Fri, 12 Apr 1991 13:54
23 lines
1403 bytes
1403 bytes
I am thinking about making my own type of class, but I can find little
useful documentation on what is legal, portable and sylistically good.
Hence, these questions:
Is subclassing clos:standard-class a normal and safe thing to do?
Is it portable?
Where are the methods for clos:standard-class documented? Should I use
``Readers for Class Metaobjects" p. 3-88 of Chapter 3 of the CLOS spec?
(I have Draft 11, July 30, 1990.)
Given that all I really want to do is add some slots (say,
my-class-slot) to standard-class, might I be better off defining a class
(my-root-class) with some class variables (e.g., my-class-slot), and
make all my classes subclasses of my-root-class? This has a conceptual
non-nicity in that the slots that should be in the class are accessed
from the instances, but as class variables.
Comments? Advise? Is this question too naive to be of interest?
ralph hill
Bellcore
Technical Details
Message-ID:
<Yc1PkD20M2a9AFDFxO@thumper.bellcore.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uwm.edu!bionet!agate!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uwm.edu!bionet!agate!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage From: rdh@THUMPER.BELLCORE.COM (Ralph Hill) Newsgroups: comp.lang.clos Subject: Subclassing clos:standard-class Message-ID: <Yc1PkD20M2a9AFDFxO@thumper.bellcore.com> Date: 12 Apr 91 13:54:23 GMT Sender: welch@tut.cis.ohio-state.edu Distribution: inet Organization: CommonLoops Lines: 23