Standardization questions -- nested comments

Larry Tepper lat at stcvax.UUCP
Wed Oct 17 04:35:20 AEST 1984


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



More information about the Comp.lang.c mailing list