D - more or less power than C++?
Don Clugston
dac at nospam.com.au
Mon Mar 6 04:46:16 PST 2006
Georg Wrede wrote:
> A historical note: They never were more than a make-believe solution for
> "other peoples' problem". In the good Old Days, when we would have
> needed trigraphs, we still didn't use them.
>> £include <stdio.h>
>>
>> int main(void)
>> ä
>> char Ä5Å;
>>
>> nÄ4Å = 'a';
>> printf("%cÖn", nÄ4Å);
>> return Ü 0 ü 1 ö 2;
>> å
>
> Incidentally, this same technique was usable (and was used) in all of
> the countries where non-US versions of ASCII were in use. It's based on
> the fact that any replacement of a US character was both typeable and
> printable. :-)
That's amazing! Thanks for that.
Now that I'm regularly using non-English keyboards regularly, I'm
realizing how annoyingly English-centric the programming world is.
Example: ctrl-Z for undo. Great for US keyboard, really annoying on a
German one, where the Z key is in the middle of the keyboard.
And [] {}, backslash and ~ are so hard to type...
I use a US keyboard with a custom layout -- I've defined AltGr to do
Ü etc, but without the stupidity of making "a = ä, which is the default
"US international" setting. No C programmers involved with that
decision, I reckon. I find it simply unbelievable that on Windows, the
default US keyboard layout still had no € key, last time I checked.
More information about the Digitalmars-d
mailing list