[erlang-questions] Erlang 3000?
Johnny Billquist
bqt@REDACTED
Fri Nov 21 14:01:01 CET 2008
Richard O'Keefe wrote:
> On 21 Nov 2008, at 9:02 am, Toby Thain wrote:
>
>> On 19-Nov-08, at 9:49 PM, Richard O'Keefe wrote:
>>
>>> ...
>>> The whole idea of a 1-1 lower-upper case mapping is historically
>>> absurd.
>>
>> char toupper(char c){ return c & ~0x20; }
>>
>> The ASCII guys told me this would work everywhere, forever. Was I
>> misled??
>
> Not even for ASCII. Consider this: '~' is not a lower case letter,
> so upcasing should leave it alone. But '~' &~ 0x20 is '^'. OOPS!
You know, I think Toby was trying to be funny...
Johnny
More information about the erlang-questions
mailing list