[Cl-store-devel] Making GET-SLOT-DETAILS a generic

Thomas Stenhaug thomas at src.no
Thu Feb 17 10:51:57 UTC 2005


Sean Ross wrote:

> (defclass foo () 
>   ((a :accessor a :initarg :a)
>    (b :accessor b :initarg :b)))
> 
> (defmethod serializable-slots ((object foo))
>   (remove 'b (call-next-method) :key 'slot-definition-name))
> 
> to only serialize slot A.
>  
>
Great!  FWIW, that's the same solution I used in my 
serialization-library too.


Thomas





More information about the cl-store-devel mailing list