Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!atexnet!cvbnet!jsulliva From: jsulliva@cvbnet.UUCP (Jeff Sullivan, x4096 MS 4-2) Newsgroups: comp.lang.c Subject: Re: Nested Comments in C -- A recent experience Message-ID: <109@cvbnetPrime.COM> Date: 13 Mar 90 19:49:54 GMT References: <1990Mar11.222704.16655@utzoo.uucp> Sender: postnews@cvbnetPrime.COM Lines: 21 I have used at least one C compiler that allowed nested comments with the use of a command line flag. The default was to not allow them. I thought this was great for debugging since I could "comment out" large blocks of code, comments and all. This was the only benefit I could see in allowing nested comments. Anyway, since then I have used #define's to comment out large blocks of code (while debugging). For example: #ifdef disabled statement1; /* comment 1 */ .... statementn; /* comment n */ #endif Obviously, you never #define disabled. Works fo me! -Jeff