Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Nested Comments in C -- A recent experience Message-ID: <1990Mar18.045238.18224@utzoo.uucp> Organization: U of Toronto Zoology References: <9631@wpi.wpi.edu> Date: Sun, 18 Mar 90 04:52:38 GMT In article <9631@wpi.wpi.edu> msau@wpi.wpi.edu (Matt Saucier) writes: >To Mr HS. If you say that C compilers that allow, or can allow, nested >comments are not C compilers, then you are very nieve... I guess I'm just old-fashioned: I feel that to be called a C compiler, it should compile C. Every definition of C, from the earliest days, has been explicit that C comments do not nest. >... Although I don't use the nested comment >method (I use #ifdef DEBUG #endif (or whatever)), I know a lot of people who >do use them.... As has been explained at length, several times, this is a thoroughly bad idea that programmers eventually learn to avoid. It simply doesn't work as well as #ifdef. -- MSDOS, abbrev: Maybe SomeDay | Henry Spencer at U of Toronto Zoology an Operating System. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu