| Author |
VW7.5 printing in base > 16 problems
|
|
| johnhwoods@googlemail.com 2008-03-08, 7:20 pm |
| 234 printStringRadix: 64 = '3a' but 16r3a=202 (the same as 16r3A).
Maybe this could be fixed in the upcoming 7.6?
| |
| David Buck 2008-03-08, 7:20 pm |
| johnhwoods@googlemail.com wrote:
> 234 printStringRadix: 64 = '3a' but 16r3a=202 (the same as 16r3A).
> Maybe this could be fixed in the upcoming 7.6?
I think you mean 64r3a.
For that matter, 234 printStringRadix: 256 gives an unprintable
character. I don't think it's well defined how high a base you can use
in printStringRadix: or the 'r' integer literal notation.
David Buck
| |
| nicolas cellier 2008-03-08, 7:20 pm |
| johnhwoods@googlemail.com a écrit :
> 234 printStringRadix: 64 = '3a' but 16r3a=202 (the same as 16r3A).
> Maybe this could be fixed in the upcoming 7.6?
This is not 16r but 64r...
But i see what you mean:
Character class>>digitValue:
does not agree with:
Character>>digitValue
The former is very permissive, while the latter is limited to interpret
base 36 at most (with a hack for 16ra = 16rA)
What do you need base 64 for?
Nicolas
| |
| lopemanc@swbell.net 2008-03-10, 10:29 pm |
| On Mar 8, 10:11 am, David Buck <da...@simberon.com> wrote:
> johnhwo...@googlemail.com wrote:
>
> I think you mean 64r3a.
>
> For that matter, 234 printStringRadix: 256 gives an unprintable
> character. I don't think it's well defined how high a base you can use
> in printStringRadix: or the 'r' integer literal notation.
>
> David Buck
I would have guessed based 36 to be the limit. 0-9 A-Z. Unless your
providing a mapping for other characters, you would need to use
multiple characters per digit.
|
|
|
|