setprop (symbol, property, value)
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); nil Gamma> setprop(#weight,#hiwarning,950); nil Gamma> setprop(#weight,#lowlimit,500); nil Gamma> setprop(#weight,#lowwarning,550); nil Gamma> getprop(#weight,#hilimit); 1000 Gamma> getprop(#weight,#lowwarning); 550 Gamma>
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.