On Wed, 21 Jul 2010, Nicolas Cellier wrote:

I don't think Eliot changed that, he only changed Integer>>hex...

He didn't change it compared to the previous implementation, but he didn't restore the pre 3.9 state.

It seems that every implementation of hex did avoid to print the radix in
Squeak 3.10. Was it intentional ?

Anyway, it will be hard to reach homogeneity because:
 Integer>>hex should print the radix for VMMaker compatibility
 ByteArray>>hex shouldn't for cypto compatibility

ByteArray >> #hex is in the Cryptography package, and IMHO it should stay there.


Levente


Nicolas

2010/7/21 Stéphane Ducasse <[email protected]>

Levente /Eliot

I noticed that

$A hex on squeak
       -> 41
and in pharo
       -> '16r41'

I would like to have both consistent what do you think to have

$A hex
       -> '16r41'

$A printStringHex
       -> '41'

like that this is consistent with the behavior on integer.
Eliot I saw that to change the behavior on characters and I would like to
know why.
I thought that it was for debugging purpose.

Stef



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

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

Reply via email to