Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007584 [Squeak] Collections minor always 12-14-10 01:40 12-16-10 23:14
Reporter nicolas cellier View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version trunk
Summary 0007584: Cannot print a Dictionary with a Complex key
Description self
  shouldnt: [
    ({
      (1 i) -> 'imaginary'.
      1 -> 'real'
    } as: Dictionary) printString]
  raise: Error
Additional Information #keysSortedSafely is not robust.
More other, #isNumber expectations have been changed since 0002688
I don't think 0002688 was a good solution because most methods testing isNumber don't expecta Complex number.
Attached Files

- Relationships

- Notes
(0013988 - 227 - 257 - 257 - 257 - 257 - 257)
leves
12-16-10 23:14

What can we do?
- add an #isComplex check?
- remove #isNumber from Complex?
- use #isKindOf: Number instead of #isNumber (which may be too slow)?
- use a Schwartzian transform?
- redesign the whole number handling code? :)
 

- Issue History
Date Modified Username Field Change
12-14-10 01:40 nicolas cellier New Issue
12-16-10 23:14 leves Note Added: 0013988


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
33 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker