Mantis - Squeak 3.8
Viewing Issue Advanced Details
3490 Collections tweak always 04-21-06 03:37 04-25-06 14:37
black  
 
normal  
new 3.8  
open  
none    
none  
0003490: Printing of non-literal arrays is broken
Changes the way that arrays are printed. If the elements of the array are not all literals, this changeset prints them with { . } notation rather than with #( ) notation. This is because the #( ) notation is misleading, i.e., wrong: it will not evaluate to the reciever.

The way that arrays are printed has been changed in 3.9, but the new implementation misses the fact that Fractions are selfEvaluating.
 array printing.3.cs [^] (1,209 bytes) 04-21-06 03:37
 ArrayTest.1.cs [^] (620 bytes) 04-23-06 08:13

Notes
(0004775)
ducasse   
04-22-06 13:45   
Andrew do you have a nice test?
(0004778)
black   
04-23-06 08:18   
I have just uploaded a test. To be clear, the problem that I address here has actually addressed more completely in 3.9, where there are THREE different ways of printing arrays. (See also my bug report on that, http://bugs.impara.de/view.php?id=3492). [^]
(0004805)
MarcusDenker   
04-25-06 14:37   
I added the test to 3.9, too. I will move this over to 3.8 mantis