ImmutableString.st
branchjv
changeset 20579 9add81aadb7a
parent 20079 8d884971c2ed
parent 20525 d7da56a61fc0
child 23547 c69c97cec351
--- a/ImmutableString.st	Mon Oct 03 12:44:41 2016 +0100
+++ b/ImmutableString.st	Sun Oct 09 21:28:18 2016 +0100
@@ -125,6 +125,18 @@
     "return a writable copy of myself"
 
     ^ self copy changeClassTo:String
+!
+
+beImmutable
+    "that's what I am"
+
+    ^ self
+!
+
+beMutable
+    "you never go back"
+
+    ^ self shouldNotImplement
 ! !
 
 !ImmutableString methodsFor:'copying'!