User Tools


Accessor SYMBOL-PLIST

Syntax

  • symbol-plist symbolplist
  • (setf (symbol-plist symbol) new-plist)

Arguments and Values

Description

Accesses the property list of symbol.

Examples

(defparameter *my-symbol* (gensym))

#:G9723

(symbol-plist *my-symbol*)

()

(setf (get *my-symbol* 'prop1) 'val1)

VAL1

(symbol-plist *my-symbol*)

(PROP1 VAL1)

(setf (get *my-symbol* 'prop2) 'val2)

VAL2

(symbol-plist *my-symbol*)

(PROP2 VAL2 PROP1 VAL1)

(setf (symbol-plist *my-symbol*) (list 'prop3 'val3))

(PROP3 VAL3)

(symbol-plist *my-symbol*)

(PROP3 VAL3)

Side Effects

None.

Affected By

None.

Exceptional Situations

Should signal an error of type type-error if symbol is not a symbol.

See Also

Notes

The use of setf should be avoided, since a symbol's property list is a global resource that can contain information established and depended upon by unrelated programs in the same Lisp image.