Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!ucbvax!hplabs!hpda!athertn!ericb From: ericb@athertn.Atherton.COM (Eric Black) Newsgroups: comp.lang.c Subject: Re: nested comments Message-ID: <162@teak.athertn.Atherton.COM> Date: 22 Jan 88 04:55:19 GMT References: <13423@pyramid.pyramid.com> <7224@apple.UUCP> Reply-To: ericb@Atherton.COM (Eric Black) Organization: Atherton Technology, Sunnyvale, CA Lines: 31 In article <7224@apple.UUCP> joemac@apple.UUCP (Joe MacDougald) writes: >Rather then using nested comments, why not use: > >#ifdef 0 > >int a = 1; /* COMMENT */ >int b = a; /* COMMENT */ > >#endif Because "0" is not a legal preprocessor symbol, and some compilers/preprocessors will complain (e.g. VMS C). Instead, use: #if 0 ... #endif or: #ifdef notdef ... #endif Compiling code containing the latter construct with a -Dnotdef is kind of like certain FORTRAN (and other) compilers that share constants and pass parameters by reference; the laws of the universe can change, and 3 can be equal to 2... -- Eric Black "Garbage in, Gospel out" UUCP: {sun!sunncal,hpda}!athertn!ericb Domainist: ericb@Atherton.COM