[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Alternative to ~= for inequality?
- From: Andres Perera <andres.p@...>
- Date: Mon, 11 Feb 2013 14:15:42 -0430
On Sat, Feb 9, 2013 at 8:14 PM, Robert Virding
<robert.virding@erlang-solutions.com> wrote:
>
> ----- Original Message -----
>> From: "Sean Conner" <sean@conman.org>
>>
>> Actually, C (C89 and later) *does* allow alternatives to the
>> following
>> characters:
>>
>> #
>> \
>> ^
>> [
>> ]
>> |
>> {
>> }
>> ~
>> `
>>
>> They are, in the order above:
>>
>> ??=
>> ??/
>> ??'
>> ??(
>> ??)
>> ??!
>> ??{
>> ??}
>> ??-
>>
>> Not the prettiest substitutions, but at least C makes the attempt.
>>
>> -spc (Although I'm not sure if any Obsfucted C Code Contest entries
>> ever
>> used them ... )
>
> Using them is practically all you need to do to make an entry for the Obfusticated C Code. :-)
trigraphs are useful in preprocessed code where an upper layer
language takes precedence (think something like m4)
"esoteric input entry" isn't reserved to weird keyboards :)
>
> I remember some european/swedish versions of Pascal allowed (* *) for comments instead of { } and (. .) instead of [ ] because these characters were used as the swedish characters ä å and Ä Å. Terminals actually used the same ascii codes for swedish characters. Those were the days.
>
> Robert
>
>
>