Mantis - Squeak
Viewing Issue Advanced Details
3887 Collections text always 06-26-06 09:17 07-14-06 12:07
Damien Cassou Windows  
Windows  
normal XP  
closed 3.9  
3.9b-7035 fixed  
none    
none 3.9  
0003887: SequenceableCollection>>, wrong comment
In the comment, there is an example for using #,:

((2989 printStringBase: 16) copyFrom: 4 to: 6) , ' boy!'

This answer a 'Subscript out of bounds: 4'.

(2989 printStringBase: 16) evaluates to 'BAD'. Then #copyFrom:to: is out of bounds.

Notes
(0005384)
wiz   
06-27-06 07:18   
'16rBAD' is the intended result of
(2989 printStringBase: 16 )
The bug is that it evaluates to 'BAD'.

This worked according to the commment in Squeak 2.7.
And 'BAD'ly in 3.8-6665 and 3.9b-7035.

This fragment from a FractionTest


self assert: ((109/113) printStringBase: 16) = '(6D/71)'.
    self assert: ((109/113) storeStringBase: 16) = '(16r6D/16r71)'.

seems to indicate the change is deliberate and the comment should be changed to use #storeStringBase: .

I leave the changing of it to you.
(0005881)
MarcusDenker   
07-14-06 12:07   
7043