Viewing Issue Simple Details
[ Jump to Notes ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
0007194 |
[Squeak] Collections |
minor |
always |
09-16-08 23:04 |
09-16-08 23:04 |
|
Reporter |
nicolas cellier |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
open |
|
Status |
new |
|
Product Version |
3.10.2 |
|
Summary |
0007194: copyReplaceFrom:to:with: strange behavior with ill bounds |
Description |
My weird mind wanted to try this:
('hello' copyReplaceFrom: 6 to: 4 with: ' world')
-> 'hello worldo'
Funny, isn't it |
Additional Information |
('hello' copyReplaceFrom: 6 to: 0 with: ' world') -> 'hello worldhello'
Fortunately, both these work as I would expect:
'hello' copyReplaceFrom: 6 to: 5 with: ' world'.
'hello' copyReplaceFrom: 1 to: 0 with: 'world '. |
|
Attached Files |
|
|