Thanks Cool analysis now my point is that it would make sense to have hex always returning 16rXX and printStringHex XX Stef
Well, it is. :)
My question is about having a consistent API accross Character>>hex and Integer>>hex not about whether the behavior changed.
For Character >> #hex : In Squeak 3.8: $a hex -> '16r61' In Squeak 3.9: $a hex -> MNU SmallInteger >> #hex In Squeak 3.10: $a hex -> '61' In Squeak 4.0: $a hex -> '61' In Squeak 4.1: $a hex -> '61' In Squeak 4.2-alpha: $a hex -> '61'
I got confused because since Character did a simple value hex and hex got changed when I reverted I captured the new behavior Still my question is valid.
$a hex -> '16r61'
In Squeak 4.1: 97 hex -> '61' In Squeak 4.2-alpha: 97 hex -> '16r61'
So Character >> #hex returns the same in Squeak 4.1 and 4.2, while Integer >> #hex doesn't.