Path: utzoo!attcan!uunet!super!udel!gatech!bloom-beacon!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: defining a comment? Message-ID: <8064@haddock.ima.isc.com> Date: 26 Sep 88 17:55:09 GMT References: <691.2337CE68@stjhmc.fidonet.org> Sender: uucp@super.ORG Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 10 No, there is no legal way in ANSI C (or in K&R C, according to K&R) to "define a comment". Yes, you can trick the Reiser cpp into doing it anyway. Except for the Obfuscated C Contest, there is little reason to want to do so. If you're trying to suppress code which contains comments, the appropriate notation is "#if 0" ... "#endif". (Or, if your preprocessor is so backward as to not have #if, "#ifdef notdef" ... "#endif" will do.) Generally, you should use /* ... */ for natural language commentary, and #if to remove code. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint