This is the fare-mop Reference Manual, version 1.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 06:04:55 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
fare-mop
Utilities using the MOP; notably make informative pretty-printing trivial
Francois-Rene Rideau
fare-mop is a small collection of utilities using the MOP.
It notably contains a method SIMPLE-PRINT-OBJECT, and
a mixin SIMPLE-PRINT-OBJECT-MIXIN that allow you to trivially define
PRINT-OBJECT methods that print the interesting slots in your objects,
which is great for REPL interaction and debugging.
1.0.1
fare-utils
(system)., at least version "1.0.0"
closer-mop
(system).
package.lisp
(file).
utilities.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
fare-mop/utilities.lisp
package.lisp
(file).
fare-mop
(system).
collect-slots
(function).
print-object
(method).
remake-object
(function).
simple-print-object
(function).
simple-print-object-mixin
(class).
slots-to-print
(generic function).
Packages are listed by definition order.
fare-mop
closer-common-lisp
.
fare-utils
.
uiop/driver
.
collect-slots
(function).
remake-object
(function).
simple-print-object
(function).
simple-print-object-mixin
(class).
slots-to-print
(generic function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Given an OBJECT and SLOTS designating a list of slot designators,
return a p-list of an INITARG and VALUE
for each of those of the specified slots that are bound.
A slot designator may be a SLOT-DEFINITION object,
a KEYWORD specifying the INITARG of the slot,
or a SYMBOL naming the slot.
If the slot has no INITARG, the slot name is used instead in the p-list
A function to build a new object of the same class as OBJECT,
initialized with the specified KEYS, plus keys deduced from the original object
by those slots that both are bound and have a defined initarg.
Note: this function is useful for experimental programming,
but use of runtime introspection means
this function isn’t suited where performance is important.
This function will introspect you object’s slots to print it.
You can call it explicitly from your print-object methods,
or implicitly by just inheritting from SIMPLE-PRINT-OBJECT-MIXIN.
If SLOTS is T (the default), print all slots as per CLOSER-MOP:COMPUTE-SLOTS.
If SLOTS is a list of slot designators, print them.
Slots are printed as a p-list as per FARE-MOP:COLLECT-SLOTS.
The IDENTITY keyword is as per PRINT-UNREADABLE-OBJECT.
Mixin to trivially give a print-object method to your class.
If you don’t want to print all slots, define a method on FARE-MOP:SLOTS-TO-PRINT
to return a list of slot designators for those slots you want to print,
as per FARE-MOP:COLLECT-SLOTS.
Jump to: | C F G M P R S |
---|
Jump to: | C F G M P R S |
---|
Jump to: | C F P S U |
---|
Jump to: | C F P S U |
---|