Standardization questions -- nested comments

Ron Natalie <ron> ron at brl-tgr.ARPA
Fri Oct 12 10:24:48 AEST 1984


If you make /* */ nest, then you will incur the wrath of the
people who comment code out with the correct and documented
behavior of comments.  By the way, it isn't that /* */ doesn't
nest properly, they don't nest at all.

There already is a facility called conditional compilation that
does what you want.  Like

	#ifdef NOT_TODAY
		/*
		 *  This code is only to be run on February 31.
		 */
		while(n--) n++;
	#endif

-Ron



More information about the Comp.lang.c mailing list