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'


<<inline: Screen shot 2010-07-21 at 7.15.51 PM.png>>



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

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to