#TUNING by stefan
authorStefan Vogel <sv@exept.de>
Tue, 04 Oct 2016 12:23:58 +0200
changeset 20521 1af1367996fd
parent 20520 9693cc425d5d
child 20522 3f050234feeb
#TUNING by stefan class: ImmutableArray added: #beImmutable
ImmutableArray.st
--- a/ImmutableArray.st	Tue Oct 04 12:23:43 2016 +0200
+++ b/ImmutableArray.st	Tue Oct 04 12:23:58 2016 +0200
@@ -127,6 +127,12 @@
     "return a writable copy of myself"
 
     ^ self copy changeClassTo:Array
+!
+
+beImmutable
+    "that's what I am"
+
+    ^ self
 ! !
 
 !ImmutableArray methodsFor:'copying'!