The Trunk: Kernel-eem.473.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-eem.473.mcz

commits-2
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.473.mcz

==================== Summary ====================

Name: Kernel-eem.473
Author: eem
Time: 17 July 2010, 5:13:29.985 pm
UUID: 2255d998-2581-444e-9caf-7e51de7ba918
Ancestors: Kernel-eem.472

Change to older semantics of Integer>>hex for Cog VMMaker.

=============== Diff against Kernel-eem.472 ===============

Item was changed:
  ----- Method: Integer>>hex (in category 'printing') -----
  hex
+ "Print the receiver as hex, prefixed with 16r.  DO NOT CHANGE THIS!!  The Cog VMMaker depends on this.
+ Consider using any of
+ printStringHex
+ printStringBase: 16
+ printStringBase: 16 length: 8 padded: true
+ storeStringHex
+ storeStringBase: 16
+ storeStringBase: 16 length: 11 padded: true"
+ ^self storeStringBase: 16!
- "receiver is in range 0 to 255. Returns a two 'digit' hexadecimal representation of the receiver.
- If you want no padding use asHexDigit or printStringHex. i.e.
-      15 printStringHex ==  'F'
-      15 asHexDigit == $F
-      15 hex == '0F'"
- ^self printStringBase: 16 length: 2 padded: true
- !