|
putprop
|
The putprop function adds the property-descriptor {propDesc} and the
property-name {propName} to the named symbol {sym}. If the
{propName} already exists, the new value {val} replaces
the old value.
When to use The putprop function is a function defined as part of the standard
Lisp language. There are five functions that deal with assigning,
acquiring and removing a property from a property list of a symbol:
putProp, getProp, proplist, proprecord, and remProp.
The notion of a property for a symbol consists one or more property
bindings: a property-descriptor followed by a property-name.
While Lisp supports the traditional Lisp functions for properties,
the Structure and Dictionary objects offer a more flexible way of
storing attribute bindings.
(putprop sym val prop) Adds the property binding, consisting of a property-Name and
property-Descriptor. If the property-Name is already installed,
then the old property-Descriptor is replaced with the incoming
propDesc. Returns the propDesc.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types sym A Symbol Symbol propName The property Name Symbol propDesc The property Descriptor Symbol
Returns:
Examples
Argument Types
Symbol
Structure
List
Pair
How do I contact the AIS team?