--- a/ImmutableArray.st Wed Jul 01 22:03:48 2015 +0200
+++ b/ImmutableArray.st Thu Jul 02 16:58:18 2015 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
@@ -57,21 +59,23 @@
Turn the ImmutableArray feature on by setting the Parsers class variable
'ArraysAreImmutable' to true or use the new launchers settings menu.
+ This class should be used only by the compiler.
ATTENTION:
- there may be still code around which checks for explicit class being Array
- (both in Smalltalk and in primitive code). All code like foo 'class == Array'
- or '__isArray' will not work with ImmutableArrays.
- A somewhat better approach would be to either add a flag to the object (mutability)
- and check this dynamically (expensive) or to place immutable objects into a readonly
- memory segment (the good solution). We will eventually implement the second in the future...
+ there may be still code around which checks for explicit class being Array
+ (both in Smalltalk and in primitive code). All code like foo 'class == Array'
+ or '__isArray' will not work with ImmutableArrays; consider using '__isArrayLike'.
+ A somewhat better approach would be to either add a flag to the object (mutability)
+ and check this dynamically (expensive) or to place immutable objects into a readonly
+ memory segment (the good solution). We will eventually implement the second in the future...
[see also:]
- ImmutableString
- Parser Scanner
+ ImmutableString
+ ImmutableByteArray
+ Parser Scanner
[author:]
- Claus Gittinger
+ Claus Gittinger
"
! !
@@ -202,10 +206,10 @@
!ImmutableArray class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/ImmutableArray.st,v 1.34 2015-02-03 13:54:33 stefan Exp $'
+ ^ '$Header$'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic/ImmutableArray.st,v 1.34 2015-02-03 13:54:33 stefan Exp $'
+ ^ '$Header$'
! !