On 31/01/12 1:05 PM, Sean Conner wrote:
On 31 Jan 2012
at 11:21, Sean Conner wrote:
>
> A friend recently raised an issue with some code I wrote (a hex dump
> routine) saying it depended upon ASCII ...
He suggested the
"0123456789ABCDEF"[value& 0x0F] approach (as did a few
others here).
This is essentially how Professor Knuth achieved portability to
non-ASCII systems for TeX, METAFONT and his other tools.
--Toby
-spc (But he did mention non-ASCII based systems as the basis for his
complaint)