[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails |
Date: |
Sat, 31 Mar 2007 16:37:57 +0200 |
User-agent: |
Thunderbird 1.5.0.10 (Macintosh/20070221) |
> I was actually trying to address all three of them by suggesting how the
> class could be used instead of how it should be refined. If it doesn't
> make sense, just add "See documentation of Collection>>#from: for
> details." and, uh, forget about it. :)
Like this?
--- orig/kernel/Dictionary.st
+++ mod/kernel/Dictionary.st
@@ -52,7 +52,8 @@ equality of indices.' !
from: anArray
"Answer a new dictionary created from the keys and values of
Associations in anArray, such as {1 -> 2. 3 -> 4}. anArray
- should be specified using brace-syntax."
+ is meant to be specified using brace-syntax. See documentation
+ of Collection>>#from: for details."
| inst |
inst := self new: anArray size.
anArray do: [:assoc | inst at: assoc key put: assoc value].
Paolo
- Re: [Help-smalltalk] Dictionary>>#addAll: fails, (continued)
- [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 <=
- [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, 2007/03/23
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, Jānis Rūcis, 2007/03/23