ImmutableString.st
changeset 14222 876ba773f5d2
parent 14115 8599762e8a45
child 14386 27b494f48340
equal deleted inserted replaced
14221:d2ef1c042257 14222:876ba773f5d2
    56     Turn the ImmutableString feature on by setting the Parsers class variable
    56     Turn the ImmutableString feature on by setting the Parsers class variable
    57     'StringsAreImmutable' to true or use the new launchers settings menu.
    57     'StringsAreImmutable' to true or use the new launchers settings menu.
    58 
    58 
    59 
    59 
    60     ATTENTION:
    60     ATTENTION:
    61 	there may be still code around which checks for explicit class being String
    61         there may be still code around which checks for explicit class being String
    62 	(both in Smalltalk and in primitive code). All code like foo 'class == String'
    62         (both in Smalltalk and in primitive code). All code like foo 'class == String'
    63 	or '__isString' will not work with ImmutableStrings.
    63         or '__isString()' will not work with ImmutableStrings. Use '__isStringLike()' instead.
    64 	A somewhat better approach would be to either add a flag to the object (mutability)
    64         A somewhat better approach would be to either add a flag to the object (mutability)
    65 	and check this dynamically (expensive) or to place immutable objects into a readonly
    65         and check this dynamically (expensive) or to place immutable objects into a readonly
    66 	memory segment (the good solution). We will eventually implement the second in the future...
    66         memory segment (the good solution). We will eventually implement the second in the future...
    67 
    67 
    68     [see also:]
    68     [see also:]
    69 	ImmutableArray
    69         ImmutableArray
    70 	Parser Scanner
    70         Parser Scanner
    71 
    71 
    72     [author:]
    72     [author:]
    73 	Claus Gittinger
    73         Claus Gittinger
    74 "
    74 "
    75 ! !
    75 ! !
    76 
    76 
    77 !ImmutableString methodsFor:'accessing'!
    77 !ImmutableString methodsFor:'accessing'!
    78 
    78 
   172 ! !
   172 ! !
   173 
   173 
   174 !ImmutableString class methodsFor:'documentation'!
   174 !ImmutableString class methodsFor:'documentation'!
   175 
   175 
   176 version
   176 version
   177     ^ '$Header: /cvs/stx/stx/libbasic/ImmutableString.st,v 1.11 2012-04-21 16:01:10 stefan Exp $'
   177     ^ '$Header: /cvs/stx/stx/libbasic/ImmutableString.st,v 1.12 2012-07-19 17:34:43 stefan Exp $'
   178 !
   178 !
   179 
   179 
   180 version_CVS
   180 version_CVS
   181     ^ '$Header: /cvs/stx/stx/libbasic/ImmutableString.st,v 1.11 2012-04-21 16:01:10 stefan Exp $'
   181     ^ '$Header: /cvs/stx/stx/libbasic/ImmutableString.st,v 1.12 2012-07-19 17:34:43 stefan Exp $'
   182 ! !
   182 ! !