Next: , Previous: , Up: Dictionary   [Index]


1.64.8 Dictionary: namespace protocol

allSuperspaces

Answer all the receiver’s superspaces in a collection

allSuperspacesDo: aBlock

Evaluate aBlock once for each of the receiver’s superspaces (which is none for BindingDictionary).

definedKeys

Answer a kind of Set containing the keys of the receiver

definesKey: key

Answer whether the receiver defines the given key. ‘Defines’ means that the receiver’s superspaces, if any, are not considered.

hereAssociationAt: key

Return the association for the variable named as specified by ‘key’ *in this namespace*. If the key is not found search will *not* be carried on in superspaces and the method will fail.

hereAssociationAt: key ifAbsent: aBlock

Return the association for the variable named as specified by ‘key’ *in this namespace*. If the key is not found search will *not* be carried on in superspaces and aBlock will be immediately evaluated.

hereAt: key

Return the value associated to the variable named as specified by ‘key’ *in this namespace*. If the key is not found search will *not* be carried on in superspaces and the method will fail.

hereAt: key ifAbsent: aBlock

Return the value associated to the variable named as specified by ‘key’ *in this namespace*. If the key is not found search will *not* be carried on in superspaces and aBlock will be immediately evaluated.

inheritsFrom: aNamespace

Answer whether aNamespace is one of the receiver’s direct and indirect superspaces

superspace

Answer the receiver’s superspace, which is nil for BindingDictionary.

withAllSuperspaces

Answer the receiver and all of its superspaces in a collection, which is none for BindingDictionary

withAllSuperspacesDo: aBlock

Invokes aBlock for the receiver and all superspaces, both direct and indirect (though a BindingDictionary does not have any).


Next: , Previous: , Up: Dictionary   [Index]