equal
deleted
inserted
replaced
9 other person. No title to or ownership of the software is |
9 other person. No title to or ownership of the software is |
10 hereby transferred. |
10 hereby transferred. |
11 " |
11 " |
12 |
12 |
13 SequenceableCollection subclass:#ArrayedCollection |
13 SequenceableCollection subclass:#ArrayedCollection |
14 instanceVariableNames:'' |
14 instanceVariableNames:'' |
15 classVariableNames:'' |
15 classVariableNames:'' |
16 poolDictionaries:'' |
16 poolDictionaries:'' |
17 category:'Collections-Abstract' |
17 category:'Collections-Abstract' |
18 ! |
18 ! |
19 |
19 |
20 !ArrayedCollection class methodsFor:'documentation'! |
20 !ArrayedCollection class methodsFor:'documentation'! |
21 |
21 |
22 copyright |
22 copyright |
263 'hello' copy grow:20 |
263 'hello' copy grow:20 |
264 " |
264 " |
265 ! |
265 ! |
266 |
266 |
267 removeAll |
267 removeAll |
268 'ARRCOLL: Warning: slow remove operation (' infoPrint. |
268 "remove all elements from the receiver. |
|
269 For ArrayedCollections (which are actually fixed-size collections), |
|
270 this is a slow operation, since a #become: is required to update |
|
271 all owners. Better use a collection which is prepared for growing |
|
272 (i.e. an OrderedCollection). |
|
273 We output a warning message here, to remind you about that." |
|
274 |
|
275 'ARRCOLL: Warning: slow removeAll operation (' infoPrint. |
269 self class name infoPrint. ')' infoPrintNL. |
276 self class name infoPrint. ')' infoPrintNL. |
270 |
277 |
271 self become:(self copyEmpty) |
278 self become:(self copyEmpty) |
272 |
279 |
273 " |
280 " |
274 #(1 2 3 4 5) copy removeAll |
281 #(1 2 3 4 5) copy removeAll |
275 #(1 2 3 4 5) removeAll |
282 #(1 2 3 4 5) removeAll |
276 " |
283 " |
|
284 |
|
285 "Modified: 21.3.1996 / 15:28:08 / cg" |
277 ! ! |
286 ! ! |
278 |
287 |
279 !ArrayedCollection methodsFor:'testing'! |
288 !ArrayedCollection methodsFor:'testing'! |
280 |
289 |
281 includesKey:anIndex |
290 includesKey:anIndex |
300 ! ! |
309 ! ! |
301 |
310 |
302 !ArrayedCollection class methodsFor:'documentation'! |
311 !ArrayedCollection class methodsFor:'documentation'! |
303 |
312 |
304 version |
313 version |
305 ^ '$Header: /cvs/stx/stx/libbasic/ArrayedCollection.st,v 1.30 1996-02-21 14:10:57 cg Exp $' |
314 ^ '$Header: /cvs/stx/stx/libbasic/ArrayedCollection.st,v 1.31 1996-03-21 14:29:19 cg Exp $' |
306 ! ! |
315 ! ! |