#define CTRL(x) followup (it can't be done in ANSI C)
Daniel R. Levy
levy at ttrdc.UUCP
Sun Dec 7 11:19:16 AEST 1986
In article <3721 at utcsri.UUCP>, greg at utcsri.UUCP writes:
>>Some people have suggested
>> char repl.: #define foo(a) 'a' (#a)[0]
>
>Is it that hard to write CTRL('X') rather than CTRL(X), that you want
>to add a somewhat bizarre, difficult-to-support feature to a language
>that already has more than its fair share of weird? ...
>If you have lots of code with CTRL([) etc, in it, why not write a lex
>script to change it to the way it should have been written in the first
>place?
Hey, not all of us are lex wizards. Some people even have trouble with
ed(1) ! (Using ed or [more efficiently] sed, or even awk, is the reasonable
way to go for the average Joe Hacker; why use a cannon to kill a gopher?)
More information about the Comp.lang.c
mailing list