ImmutableArray.st
changeset 20349 46e7949e6cf9
parent 18702 9e60f3215c37
child 20350 90f13d5d7e00
child 20521 1af1367996fd
--- a/ImmutableArray.st	Sat Sep 03 09:41:04 2016 +0200
+++ b/ImmutableArray.st	Tue Sep 06 18:08:12 2016 +0200
@@ -209,6 +209,13 @@
 
     self noModificationError.
     ^ super becomeSameAs:anotherObject
+!
+
+grow:newSize
+    "trigger an error if I should change my size"
+
+    self noModificationError.
+    ^ super grow:newSize
 ! !
 
 !ImmutableArray class methodsFor:'documentation'!