Previous: Property Primitives, Up: Object Properties An Older Approach to Properties

Traditionally, Lisp systems provide a different object property interface to that provided by make-object-property, in which the object property that is being set or retrieved is indicated by a symbol.

Guile includes this older kind of interface as well, but it may well be removed in a future release, as it is less powerful than make-object-property and so increases the size of the Guile library for no benefit. (And it is trivial to write a compatibility layer in Scheme.)

— Scheme Procedure: object-properties obj
— C Function: scm_object_properties (obj)

Return obj's property list.

— Scheme Procedure: set-object-properties! obj alist
— C Function: scm_set_object_properties_x (obj, alist)

Set obj's property list to alist.

— Scheme Procedure: object-property obj key
— C Function: scm_object_property (obj, key)

Return the property of obj with name key.

— Scheme Procedure: set-object-property! obj key value
— C Function: scm_set_object_property_x (obj, key, value)

In obj's property list, set the property named key to value.