setprop
setprop — sets a property value for a symbol.
setprop (symbol, property, value)
symbolThe symbol whose property will be set.
propertyA symbol which identifies the property to be set.
valueThe new value of the property.
The previous value for that property, or nil if there was no previous value.
All symbols in Gamma may have properties assigned to them. These
properties are not limited by the scope of the symbol, so that a symbol's
property list is always global. A property consists of a (name . value)
pair. Property lists are automatically maintained by
setprop to ensure that each property name is unique
for a symbol. A symbol may have any number of properties. A property for a
symbol is queried using getprop.
The symbol and property are
normally protected from evaluation when setting properties, using the
# operator.
Gamma>setprop(#weight,#hilimit,1000);nilGamma>setprop(#weight,#hiwarning,950);nilGamma>setprop(#weight,#lowlimit,500);nilGamma>setprop(#weight,#lowwarning,550);nilGamma>getprop(#weight,#hilimit);1000Gamma>getprop(#weight,#lowwarning);550Gamma>