#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Mon, 15 Apr 2019 19:34:25 +0200
changeset 24082 6995fb26bd13
parent 24081 916a16fd5889
child 24083 2c2aa640efbc
#REFACTORING by stefan class: Dictionary changed: #addAll: OrderedDictionaries are no longer #isSequnceable
Dictionary.st
--- a/Dictionary.st	Mon Apr 15 19:24:03 2019 +0200
+++ b/Dictionary.st	Mon Apr 15 19:34:25 2019 +0200
@@ -917,10 +917,9 @@
      WARNING: do not add elements while iterating over the receiver.
               Iterate over a copy to do this."
 
-
     self ~~ aCollection ifTrue:[
-        "/ ouch: OrderedDictionary is sequenceable but enumerates values only, not pairs
-        (aCollection isSequenceable and:[aCollection isDictionary not]) ifTrue:[
+        aCollection isSequenceable ifTrue:[
+            "Association like objects"
             aCollection do:[:eachPair |
                 self at:eachPair key put:eachPair value.
             ].
@@ -946,6 +945,7 @@
     "
 
     "Modified: / 04-11-2018 / 19:18:55 / Claus Gittinger"
+    "Modified (format): / 15-04-2019 / 19:28:36 / Stefan Vogel"
 !
 
 addOrReplace:anAssociation