> The only thing that stands in the way of that is #do:.  Dictionary>>#do:
> isn't in the standard, so compliance is not really a problem.

Forgot replying to this part, sorry:  Dictionary>>#do: is in the
standard.

An <abstractDictionary> is a <collection> and the collection's
#do: is defined as this:

"For each element of the receiver, operation is evaluated with
the element as the parameter."

and <abstractDictionary> is said to provide "protocol for accessing,
adding, removing, and iterating over the elements of an unordered 
collection whose elements are accessed using an explicitly assigned
external key."  So, it's clear that the key is *not* part of the
element, and thus not considered by #do:.

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to