> Alex, why does getl return a list of (property-value . property-name)
> and not a list of (property-name . property-value)?
There are some practical reasons for representing the elements of
property lists in such a way.
Most of all, a cell can be passed to functions that expect a variable
'var' argument, like 'set', 'inc', 'pop', and many more. This is also
the reason for the property functions 'prop' and '::'.
: (put 'A 'counter 0)
: (put 'A 'list (1 2 3 4))
-> (1 2 3 4)
: (with 'A (inc (:: counter)))
: (pop (prop 'A 'list))
: (show 'A)
list (2 3 4)
Another reason is that a property list could be searched for a given
value with 'assoc'.
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]