[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defstruct Extensions
Several of these functions exist in CommonLoops. In addition, the
metaclass mechanism makes it easy to make Portable CommonLoops (PCL)
deal with a particular CommonLisp's defstruct types as "first class"
classes.
This means that if you have a version of PCL which has been "taught"
about the particular Common Lisp's local type system you can use the PCL
functions to get the information you need regardless of whether you are
asking about a type defined by defstruct or a CommonLoops class.
In CommonLoops:
GET-STRUCTURE-SLOT is called GET-SLOT
STRUCTURE-SLOT-NAMES is called ALL-SLOTS
MAKE-STRUCTURE is called MAKE
STRUCTURE-OPTION
STRUCTURE-SLOT-OPTION
don't exist as named functions, but it might be a good idea to add them.
Of course, the only interesting part is making them setfable.