Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.255.mcz==================== Summary ====================
Name: Kernel-nice.255
Author: nice
Time: 4 October 2009, 7:54:12 am
UUID: 847ee695-85a9-45dd-ae76-ad42a23fb2fd
Ancestors: Kernel-ul.254
Fix from
http://bugs.squeak.org/view.php?id=6697Number>>storeOn:base: default implementation is wrong: It calls printOn:base:
But printOn:Base: does not print the radix, when storeOn:Base: should.
As every subclass (except ScaledDecimal) does implement storeOn:Base: the best thing to do is to defer subclassResponsibility.
=============== Diff against Kernel-ul.254 ===============
Item was changed:
----- Method: Number>>storeOn:base: (in category 'printing') -----
storeOn: aStream base: base
+ "This method should print a representation of the number for the given base,
+ including the base prefix (with letter r for radix)"
+
+ ^self subclassResponsibility!
- self printOn: aStream base: base!
Item was changed:
----- Method: Number>>printOn:base: (in category 'printing') -----
printOn: aStream base: base
+ "This method should print a representation of the number for the given base,
+ excluding the base prefix (and the letter r for radix)"
+
^self subclassResponsibility!