Re: [Pharo-project] about hex

2010-07-22 Thread Eliot Miranda
On Wed, Jul 21, 2010 at 9:59 AM, Stéphane Ducasse stephane.duca...@inria.fr wrote: On Jul 21, 2010, at 6:49 PM, Nicolas Cellier wrote: I don't think Eliot changed that, he only changed Integerhex... No he did http://code.google.com/p/pharo/issues/detail?id=2705 Item was changed:

Re: [Pharo-project] about hex

2010-07-22 Thread Stéphane Ducasse
Thanks eliot I was thinking that having the same consistent behavior is cool. What we could do is snapshot, for example, we say that Cog will only for 1.2Pharo and like that this may help you. I don't think Eliot changed that, he only changed Integerhex... No he did

Re: [Pharo-project] about hex

2010-07-21 Thread Stéphane Ducasse
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

Re: [Pharo-project] about hex

2010-07-21 Thread Nicolas Cellier
I don't think Eliot changed that, he only changed Integerhex... 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: Integerhex should print the radix for VMMaker compatibility

Re: [Pharo-project] about hex

2010-07-21 Thread Levente Uzonyi
On Wed, 21 Jul 2010, Nicolas Cellier wrote: I don't think Eliot changed that, he only changed Integerhex... 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

Re: [Pharo-project] about hex

2010-07-21 Thread Stéphane Ducasse
On Jul 21, 2010, at 6:49 PM, Nicolas Cellier wrote: I don't think Eliot changed that, he only changed Integerhex... No he did http://code.google.com/p/pharo/issues/detail?id=2705 Item was changed: - Method: Characterhex (in category 'printing') - hex + ^value printStringBase:

Re: [Pharo-project] about hex

2010-07-21 Thread Stéphane Ducasse
This is not the answer to my question. I talked about characterhex, please reread my mail. Stef On Wed, 21 Jul 2010, Nicolas Cellier wrote: I don't think Eliot changed that, he only changed Integerhex... He didn't change it compared to the previous implementation, but he didn't

Re: [Pharo-project] about hex

2010-07-21 Thread Levente Uzonyi
On Wed, 21 Jul 2010, Stéphane Ducasse wrote: This is not the answer to my question. I talked about characterhex, please reread my mail. Well, it is. :) 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

Re: [Pharo-project] about hex

2010-07-21 Thread Stéphane Ducasse
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 Characterhex and Integerhex not about whether the behavior changed. For Character #hex : In

Re: [Pharo-project] about hex

2010-07-20 Thread Stéphane Ducasse
thanks! Stef On Jul 20, 2010, at 2:46 AM, Henrik Johansen wrote: Iirc, it was reintroduced in Pharo in relation to SqueakDBX, might want to check with Mariano that changes will be compatible/SqueakDBX is updated. Cheers, Henry Den 19. juli 2010 kl. 23:05 skrev Stéphane Ducasse

Re: [Pharo-project] about hex

2010-07-20 Thread Mariano Martinez Peck
On Tue, Jul 20, 2010 at 2:46 AM, Henrik Johansen henrik.s.johan...@veloxit.no wrote: Iirc, it was reintroduced in Pharo in relation to SqueakDBX, might want to check with Mariano that changes will be compatible/SqueakDBX is updated. Hi Henrik. Indeed, it was included for SqueakDBX. Actually,

Re: [Pharo-project] about hex

2010-07-20 Thread Yanni Chiu
Originally, the NATIVE postgresql driver was (somewhat?) ANSI ST incompatible. I had it working in VAST. Along the way, the Cryptography package was added as a dependency to support MD5 passwords. If #hex is not ANSI ST, then the postgres native driver is likely unaffected by changes to #hex,

Re: [Pharo-project] about hex

2010-07-20 Thread Stéphane Ducasse
tx! I was thinking that we could keep old hex as hexDigits Stef On Jul 20, 2010, at 4:42 PM, Yanni Chiu wrote: Originally, the NATIVE postgresql driver was (somewhat?) ANSI ST incompatible. I had it working in VAST. Along the way, the Cryptography package was added as a dependency to

Re: [Pharo-project] about hex

2010-07-20 Thread Levente Uzonyi
On Tue, 20 Jul 2010, Yanni Chiu wrote: Originally, the NATIVE postgresql driver was (somewhat?) ANSI ST incompatible. I had it working in VAST. Along the way, the Cryptography package was added as a dependency to support MD5 passwords. If #hex is not ANSI ST, then the postgres native driver

[Pharo-project] about hex

2010-07-19 Thread stephane ducasse
If I recall hex was removed because it was used for html related thing. Stef Looks like the hex method will be changed in Squeak and we should keep track using this issue to see if Pharo has to follow to keep compatible (also for Cog). See

Re: [Pharo-project] about hex

2010-07-19 Thread Stéphane Ducasse
Levente Now whathex should returns? On Jul 19, 2010, at 9:33 PM, stephane ducasse wrote: If I recall hex was removed because it was used for html related thing. Stef Looks like the hex method will be changed in Squeak and we should keep track using this issue to see if Pharo

Re: [Pharo-project] about hex

2010-07-19 Thread Levente Uzonyi
On Mon, 19 Jul 2010, Stéphane Ducasse wrote: Levente Now whathex should returns? If you mean Integer #hex then see here: http://lists.squeakfoundation.org/pipermail/squeak-dev/2010-July/151957.html Levente On Jul 19, 2010, at 9:33 PM, stephane ducasse wrote: If I recall hex

Re: [Pharo-project] about hex

2010-07-19 Thread Stéphane Ducasse
**Tx** http://code.google.com/p/pharo/issues/detail?id=2699 Stef On Jul 19, 2010, at 10:07 PM, Levente Uzonyi wrote: On Mon, 19 Jul 2010, Stéphane Ducasse wrote: Levente Now what hex should returns? If you mean Integer #hex then see here:

Re: [Pharo-project] about hex

2010-07-19 Thread Henrik Johansen
Iirc, it was reintroduced in Pharo in relation to SqueakDBX, might want to check with Mariano that changes will be compatible/SqueakDBX is updated. Cheers, Henry Den 19. juli 2010 kl. 23:05 skrev Stéphane Ducasse stephane.duca...@inria.fr: **Tx**