Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site stcvax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!hao!stcvax!lat From: lat@stcvax.UUCP (Larry Tepper) Newsgroups: net.lang.c Subject: Re: Re: Standardization questions -- nested comments Message-ID: <313@stcvax.UUCP> Date: Tue, 16-Oct-84 14:35:20 EDT Article-I.D.: stcvax.313 Posted: Tue Oct 16 14:35:20 1984 Date-Received: Thu, 18-Oct-84 00:46:44 EDT References: <903@opus.UUCP> Organization: Storage Technology Corp. Louisville, CO Lines: 24 If one insists on usings comments to comment out code, instead of using "#ifdef notdef", just begin each line with "/*". Fer instance: /* Comment-out this loop until we know the hardware works... /* for (i = 0; i < whatever; i++) { /* this is a comment */ /* /* so on and so forth... */ /* .... /* } /* End of commented section */ All that's required to make this easy with an editor is to delimit the section with some token quickly recognizable by you, the programmer, rather like the !Funky!Stuff! delimiter in various shar programs. Regardless, you still have to examine the code that you intend to comment-out. Even with nested comments, a blind approach might carelessly comment out an "#endif". -- Violence is the last refuge of the incompetent. {ihnp4 hao philabs sdcrdcf ucbvax!nbires}!stcvax!lat Larry Tepper Storage Technology, MD-3T, Louisville, CO 80028 303-673-5435