(use instance msgdoc template)
(elib spec cat)
|Line 27:||Line 27:|
Revision as of 02:25, 2 July 2008
A Slot is an object which provides the behavior of the binding of a noun. "
&" in the E language allows working with slots.
A slot can also be considered a zero-dimensional collection, i.e. one which has exactly one element.
- Signature: get() :any
Returns the current value of this slot.
Sets the current value to the (possibly coerced) provided value, if appropriate for this type of slot; throws if not allowed.
- Signature: isFinal() :boolean
Note that final implies read-only, but read-only does not imply final.
- Signature: readOnly() :Slot
Returns a facet allowing get/0 but not put/1.