Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!cuae2!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP (Daniel R. Levy) Newsgroups: comp.lang.c Subject: Re: #define CTRL(x) followup (it can't be done in ANSI C) Message-ID: <1374@ttrdc.UUCP> Date: Sat, 6-Dec-86 20:19:16 EST Article-I.D.: ttrdc.1374 Posted: Sat Dec 6 20:19:16 1986 Date-Received: Sun, 7-Dec-86 05:22:52 EST References: <7136@elsie.UUCP> <779@valid.UUCP> <5396@brl-smoke.ARPA> <103@decvax.UUCP> <1375@hoptoad.uucp> <3721@utcsri.UUCP> Organization: AT&T, Computer Systems Division, Skokie, IL Lines: 14 In article <3721@utcsri.UUCP>, greg@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?)