equal
deleted
inserted
replaced
278 ^ self == Array |
278 ^ self == Array |
279 |
279 |
280 "Modified: 23.4.1996 / 15:55:06 / cg" |
280 "Modified: 23.4.1996 / 15:55:06 / cg" |
281 ! ! |
281 ! ! |
282 |
282 |
|
283 |
283 !Array methodsFor:'accessing'! |
284 !Array methodsFor:'accessing'! |
284 |
285 |
285 at:index |
286 at:index |
286 "return the indexed instance variable with index, anInteger. |
287 "return the indexed instance variable with index, anInteger. |
287 Reimplemented here to avoid the additional at:->basicAt: send |
288 Reimplemented here to avoid the additional at:->basicAt: send |
417 ! ! |
418 ! ! |
418 |
419 |
419 !Array methodsFor:'converting'! |
420 !Array methodsFor:'converting'! |
420 |
421 |
421 asArray |
422 asArray |
422 "return the receiver as an array - thats the receiver itself." |
423 "return the receiver as an array - that's the receiver itself. |
|
424 Notice: Use asNewArray, if you intent to modify the returned collection." |
423 |
425 |
424 "could be an instance of a subclass..." |
426 "could be an instance of a subclass..." |
425 self class == Array ifTrue:[ |
427 self class == Array ifTrue:[ |
426 ^ self |
428 ^ self |
427 ]. |
429 ]. |
428 ^ super asArray |
430 ^ super asArray |
429 |
431 |
430 "Modified: 22.4.1996 / 12:42:09 / cg" |
432 "Modified: 22.4.1996 / 12:42:09 / cg" |
431 ! |
433 ! |
2576 ! ! |
2578 ! ! |
2577 |
2579 |
2578 !Array class methodsFor:'documentation'! |
2580 !Array class methodsFor:'documentation'! |
2579 |
2581 |
2580 version |
2582 version |
2581 ^ '$Header: /cvs/stx/stx/libbasic/Array.st,v 1.157 2013-03-28 23:13:28 stefan Exp $' |
2583 ^ '$Header: /cvs/stx/stx/libbasic/Array.st,v 1.158 2013-04-04 07:55:57 cg Exp $' |
2582 ! |
2584 ! |
2583 |
2585 |
2584 version_CVS |
2586 version_CVS |
2585 ^ '$Header: /cvs/stx/stx/libbasic/Array.st,v 1.157 2013-03-28 23:13:28 stefan Exp $' |
2587 ^ '$Header: /cvs/stx/stx/libbasic/Array.st,v 1.158 2013-04-04 07:55:57 cg Exp $' |
2586 ! ! |
2588 ! ! |
2587 |
2589 |