An attribute
object is a mapping from a attribute<-name
to an attribute<-value.
Attributes are used by class sheet
to form a list of attribute-value
pairs and by class object
to associate object->attributes
to objects (object-level programming).
An attribute is a subclass of class program_object,
allowing the programmer to spy attribute assignment and attribute fetch
operations. See program_object->trace
and friends.
->value.any. This implies that
any PCE object may be
used to fill the attribute, but an attempt to fill it with a function
object such as @receiver, @arg1,
... or an obtainer will evaluate the special object or obtainer:
send(Attribute, value, @arg1)
Will fill Attribute with the value @arg1 refers to.
<-name
and attribute<-value.
Attributes are normally used only in the context of sheet
objects or‘object
object->attribute’.->send.
type(any) if index equals 1 or @default.<-value @nil.
Used to associate attributes without giving them a value:
send(Object, attribute, age). send(Sheet, append, age).
<-get.