allow aText asSymbol
authorClaus Gittinger <cg@exept.de>
Wed, 22 May 1996 15:59:30 +0200
changeset 1434 a317ba02d685
parent 1433 8b2eacaea59c
child 1435 3ee1fde2aa58
allow aText asSymbol
CharArray.st
CharacterArray.st
--- a/CharArray.st	Tue May 21 13:11:56 1996 +0200
+++ b/CharArray.st	Wed May 22 15:59:30 1996 +0200
@@ -2100,6 +2100,16 @@
     "Modified: 13.5.1996 / 20:36:59 / cg"
 !
 
+asSymbol
+    "return a unique symbol with the name taken from my characters.
+     The receiver must be a singleByte-String; twoByteSymbols are
+     (currently) not allowed."
+
+    ^ self string asSymbol
+
+    "Created: 22.5.1996 / 15:56:11 / cg"
+!
+
 asText
     "return a Text-object (collection of lines) from myself."
 
@@ -3872,5 +3882,5 @@
 !CharacterArray class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Attic/CharArray.st,v 1.91 1996-05-20 08:45:52 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Attic/CharArray.st,v 1.92 1996-05-22 13:59:30 cg Exp $'
 ! !
--- a/CharacterArray.st	Tue May 21 13:11:56 1996 +0200
+++ b/CharacterArray.st	Wed May 22 15:59:30 1996 +0200
@@ -2100,6 +2100,16 @@
     "Modified: 13.5.1996 / 20:36:59 / cg"
 !
 
+asSymbol
+    "return a unique symbol with the name taken from my characters.
+     The receiver must be a singleByte-String; twoByteSymbols are
+     (currently) not allowed."
+
+    ^ self string asSymbol
+
+    "Created: 22.5.1996 / 15:56:11 / cg"
+!
+
 asText
     "return a Text-object (collection of lines) from myself."
 
@@ -3872,5 +3882,5 @@
 !CharacterArray class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.91 1996-05-20 08:45:52 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.92 1996-05-22 13:59:30 cg Exp $'
 ! !