Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps From: flaps@dgp.toronto.edu (Alan J Rosenthal) Newsgroups: comp.lang.c Subject: Re: nested comments (was Re: This one bit me today) Message-ID: <1989Oct24.120230.21374@jarvis.csri.toronto.edu> Date: 24 Oct 89 16:02:30 GMT References: <2432@hub.UUCP> <568@sppy00.UUCP> <750@philmtl.philips.ca> <41019@bu-cs.BU.EDU> Lines: 30 >>>> Such compilers are *broken*, at least as C compilers. >>> >>>I don't get it. Are you saying that a C compiler that allows the option >>>of nested comments is *broken*? I believe Turbo C has a nested comments >>>option. >> >>Yes, please re-read my reply. austin@bucsf.bu.edu (Austin Ziegler) writes: >As a rule, I do not use nested comments in C, but I *have* found the need to >comment it out because I am not fully acquainted with all of the features of >the preprocessor commands. Aha!!! Finally we see what is going on. Some people who do not know C very well are being told that nested comments are good. Well, let me set them right on this score: -> nested comments are bad in C. Not only bad, in fact non-existant. Now Turbo C seems to pander to pascal programmers, and provides an option to enable nested comments (only for debugging!). They have to document this option, of course. So, they have chosen to document this option rather than to document correct use of "#if 0" ... "#endif". -> This is bad. ajr -- Vs encr vf n xvaq bs frk, gura n chapu va gur zbhgu vf n xvaq bs gnyxvat.