standard-unit-instanceGBBopen Corewith-changing-dimension-valuesunduplicated-slot-namesGoTo Top

unduplicated-slot-names   instance => unduplicated-slot-names[Generic Function]

Purpose
Add slot names of a class to the list of slots that are not duplicated by make-duplicate-instance and make-duplicate-instance-changing-class.

Method signatures

unduplicated-slot-names  (instance standard-object) => nil
unduplicated-slot-names  (instance standard-space-instance) => unduplicated-slot-names
unduplicated-slot-names  (instance standard-unit-instance) => unduplicated-slot-names

Package   :gbbopen-tools (re-exported by :gbbopen)

Module   :gbbopen-tools (the unit-instance and space-instance methods are added by :gbbopen-core)

Arguments and values

instance     A standard-object instance
unduplicated-slot-names     A proper list

Returns
A list of unduplicated slot names for the class of instance.

See also
    make-duplicate-instance
    make-duplicate-instance-changing-class

Example
Specify that slot complex-unsaved-slot in my-unit-instance should be added to the list of slots that are not duplicated by make-duplicate-instance and make-duplicate-instance-changing-class:

  (defmethod unduplicated-slot-names ((instance my-unit-instance))
    (cons 'complex-unsaved-slot (call-next-method)))


The GBBopen Project


standard-unit-instanceGBBopen Corewith-changing-dimension-valuesunduplicated-slot-namesGoTo Top