Mantis - Squeak
Viewing Issue Advanced Details
7194 Collections minor always 09-16-08 23:04 09-16-08 23:04
nicolas cellier  
 
normal  
new 3.10.2  
open  
none    
none  
0007194: copyReplaceFrom:to:with: strange behavior with ill bounds
My weird mind wanted to try this:

('hello' copyReplaceFrom: 6 to: 4 with: ' world')
  -> 'hello worldo'

Funny, isn't it
('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 '.
parent of 0005707new  'hello' copyFrom: 6 to: 5 returns '' 
Not all the children of this issue are yet resolved or closed.

There are no notes attached to this issue.