equal
deleted
inserted
replaced
|
1 "{ Encoding: utf8 }" |
|
2 |
1 " |
3 " |
2 COPYRIGHT (c) 1995 by Claus Gittinger |
4 COPYRIGHT (c) 1995 by Claus Gittinger |
3 All Rights Reserved |
5 All Rights Reserved |
4 |
6 |
5 This software is furnished under a license and may be used |
7 This software is furnished under a license and may be used |
55 a workspace somewhat strange: you cannot modify it any longer). |
57 a workspace somewhat strange: you cannot modify it any longer). |
56 |
58 |
57 Turn the ImmutableArray feature on by setting the Parsers class variable |
59 Turn the ImmutableArray feature on by setting the Parsers class variable |
58 'ArraysAreImmutable' to true or use the new launchers settings menu. |
60 'ArraysAreImmutable' to true or use the new launchers settings menu. |
59 |
61 |
|
62 This class should be used only by the compiler. |
60 |
63 |
61 ATTENTION: |
64 ATTENTION: |
62 there may be still code around which checks for explicit class being Array |
65 there may be still code around which checks for explicit class being Array |
63 (both in Smalltalk and in primitive code). All code like foo 'class == Array' |
66 (both in Smalltalk and in primitive code). All code like foo 'class == Array' |
64 or '__isArray' will not work with ImmutableArrays. |
67 or '__isArray' will not work with ImmutableArrays; consider using '__isArrayLike'. |
65 A somewhat better approach would be to either add a flag to the object (mutability) |
68 A somewhat better approach would be to either add a flag to the object (mutability) |
66 and check this dynamically (expensive) or to place immutable objects into a readonly |
69 and check this dynamically (expensive) or to place immutable objects into a readonly |
67 memory segment (the good solution). We will eventually implement the second in the future... |
70 memory segment (the good solution). We will eventually implement the second in the future... |
68 |
71 |
69 [see also:] |
72 [see also:] |
70 ImmutableString |
73 ImmutableString |
71 Parser Scanner |
74 ImmutableByteArray |
|
75 Parser Scanner |
72 |
76 |
73 [author:] |
77 [author:] |
74 Claus Gittinger |
78 Claus Gittinger |
75 " |
79 " |
76 ! ! |
80 ! ! |
77 |
81 |
78 !ImmutableArray class methodsFor:'queries'! |
82 !ImmutableArray class methodsFor:'queries'! |
79 |
83 |
200 ! ! |
204 ! ! |
201 |
205 |
202 !ImmutableArray class methodsFor:'documentation'! |
206 !ImmutableArray class methodsFor:'documentation'! |
203 |
207 |
204 version |
208 version |
205 ^ '$Header: /cvs/stx/stx/libbasic/ImmutableArray.st,v 1.34 2015-02-03 13:54:33 stefan Exp $' |
209 ^ '$Header$' |
206 ! |
210 ! |
207 |
211 |
208 version_CVS |
212 version_CVS |
209 ^ '$Header: /cvs/stx/stx/libbasic/ImmutableArray.st,v 1.34 2015-02-03 13:54:33 stefan Exp $' |
213 ^ '$Header$' |
210 ! ! |
214 ! ! |
211 |
215 |