[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail
Date: Fri, 23 Mar 2007 15:29:46 +0100
User-agent: Thunderbird (Macintosh/20070221)

> 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

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:.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]