#QUALITY by cg
authorClaus Gittinger <cg@exept.de>
Sat, 07 May 2016 12:35:14 +0200
changeset 19740 749958a29e1d
parent 19739 5f6b9dbd32c6
child 19741 aa6012bec09c
#QUALITY by cg class: Dictionary changed: #at:ifAbsentPut: can proceed in a debugger.
Dictionary.st
--- a/Dictionary.st	Sat May 07 12:33:17 2016 +0200
+++ b/Dictionary.st	Sat May 07 12:35:14 2016 +0200
@@ -440,7 +440,9 @@
     ] ifFalse:[
         "I have been changed while performing the valueBlock"
 "/        self at:k put:newValue.
-        self error:'Dictionary: inconsistency while performing #at:ifAbsentPut:'.
+        self error:'Dictionary: inconsistency while performing #at:ifAbsentPut:' mayProceed:true.
+        "/ if you proceed, I will try again...
+        ^ self at:aKey ifAbsentPut:valueBlock.
     ].
     ^ newValue