Wishes: hex-output

Robert Virding rv@REDACTED
Thu Jan 18 11:14:22 CET 2001

"Erik Johansson" <happi@REDACTED> writes:
>----- Original Message -----
>From: <Jouni.Ryno@REDACTED>
>> If it's going to be late Christmas season, and one could make some
>> wishes, what about hex-output for io:format
>Yes. I have always needed this. I use ~h and ~H. With the patch below you
>can do:
>>  io:format("~h 0x~H 16#~h\n", [51966, 51966, 51966]).
>cafe 0xCAFE 16#cafe

Seems reasonable.  I'll add it. My only small qualm is that the 
coupling ~h/~H does not mean the same thing as ~w/~W and ~p/~P, but I 
suppose there is not real problem here.

There should be probably be a matching hex-input flag for io:fread.  I 
suppose I had better do that one as well.


More information about the erlang-questions mailing list