help-smalltalk
[Top][All Lists]
Advanced

[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




reply via email to

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