PROPERTY LIST FUNCTIONS
Note that property names are not limited to symbols. All functions handle a symbol's property lists except for GETF and REMF which work with any property list.
GET THE VALUE OF A SYMBOL'S PROPERTY
(get <sym> <prop> [<dflt>])
Use SETF with GET to add or change properties.
- <sym> the symbol
- <prop> the property name
- <dflt> value to return if property not found, default is NIL
- returns the property value or <dflt> if property doesn't exist.
GET THE VALUE OF A PROPERTY
(getf <place> <prop> [<dflt>])
Use SETF with GETF to add or change properties. (NOTE--when used with SETF, <place> must be a valid place form. It gets executed twice, contrary to Common Lisp standard.)
- <place> where the property list is stored
- <prop> the property name
- <dflt> value to return if property not found, default is NIL
- returns the property value or <dflt> if property doesn't exist.
PUT A PROPERTY ONTO A PROPERTY LIST
(putprop <sym> <val> <prop>)
Modern practice is to use (SETF (GET...)...) rather than PUTPROP.
- <sym> the symbol
- <val> the property value
- <prop> the property name
- returns the property value
DELETE A PROPERTY
(remf <place> <prop>)
Defined as a macro in COMMON.LSP
- <place> where the property list is stored
- <prop> the property name
- returns T if property existed, else NIL
DELETE A SYMBOL'S PROPERTY
(remprop <sym> <prop>)
- <sym> the symbol
- <prop> the property name
- returns NIL
XLISP-PLUS - Version 2.1g - Tom Almy
tom.almy@tek.com - 18 JUL 94
Generated with WebMaker