[Pkg] The Trunk: Kernel-eem.473.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jul 18 00:14:10 UTC 2010


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
- !



More information about the Packages mailing list