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.


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.)


PUT A PROPERTY ONTO A PROPERTY LIST

(putprop <sym> <val> <prop>)

Modern practice is to use (SETF (GET...)...) rather than PUTPROP.


DELETE A PROPERTY

(
remf <place> <prop>)

Defined as a macro in COMMON.LSP


DELETE A SYMBOL'S PROPERTY

(remprop <sym> <prop>)


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker