[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 1.5.0.10 (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
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
- Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails, (continued)
- Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails, Paolo Bonzini, 2007/03/30
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/29
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Jānis Rūcis, 2007/03/29
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/29
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Jānis Rūcis, 2007/03/30
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/30
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Jānis Rūcis, 2007/03/31
- Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails, Paolo Bonzini, 2007/03/31
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/31
- Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails, Paolo Bonzini, 2007/03/30
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail,
Paolo Bonzini <=
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, Jānis Rūcis, 2007/03/23