Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!bentley!kwh From: kwh@bentley.UUCP (KW Heuer) Newsgroups: net.lang.c++,net.lang.c Subject: Re: System V preprocessor problem with Message-ID: <779@bentley.UUCP> Date: Wed, 30-Apr-86 15:50:41 EDT Article-I.D.: bentley.779 Posted: Wed Apr 30 15:50:41 1986 Date-Received: Fri, 2-May-86 23:52:57 EDT References: <3597@sun.uucp> Organization: AT&T Bell Laboratories, Liberty Corner Lines: 17 Xref: watmath net.lang.c++:177 net.lang.c:8783 In article <3597@sun.uucp> sun!guy (Guy Harris) writes: >> #define name2(a,b) a/**/b >It has, however, two problems: > > 1) If you run your code through "lint", it won't work I tried this example with "cpp -C" and it worked fine. I'd guess that cpp strips all comments in preprocessor directives reg Cdless of "-C". > 2) It is not a guaranteed property of the C language, but a > quirk of the implementation, so it will not work in > general. Agreed. Any application that depends on being able to do this is treading on thin ice. Karl W. Z. Heuer (ihnp4!bentley!kwh), The Walking Lint