Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!austin From: austin@bucsf.bu.edu (Austin Ziegler) Newsgroups: comp.lang.c Subject: Re: This one bit me today Message-ID: <41019@bu-cs.BU.EDU> Date: 24 Oct 89 01:40:34 GMT References: <2432@hub.UUCP> <568@sppy00.UUCP> <750@philmtl.philips.ca> <4147@ncsuvx.ncsu.edu> <267@wsl.UUCP> <244@bbxsda.UUCP> <1901@xyzzy.UUCP> <255@bbxsda.UUCP> <1949@xyzzy.UUCP> <273@bbxsda.UUCP> <2057@xyzzy.UUCP> Sender: daemon@bu-cs.BU.EDU Organization: Boston University College of Engineering Lines: 35 In-reply-to: goudreau@dg-rtp.dg.com's message of 23 Oct 89 20:59:25 GMT >>>>> On 23 Oct 89 20:59:25 GMT, goudreau@dg-rtp.dg.com (Bob Goudreau) said: Bob> In article <273@bbxsda.UUCP> scott@bbxsda.UUCP (Scott Amspoker) writes: >Bob Goudreau writes: > >> 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. Bob> Yes, please re-read my reply. Any such language translator is *broken* Bob> if it purports to be a translator of the C language, for the simple Bob> reason that such a program violates translator behavior that is mandated Bob> by all the important definitions of the C language (K&R, ANSI). I read the rest of your article, but this is the one part I have problems with. I am originally a Pascal programmer, and have been programming in C for enough time to acquaint myself with the language. In Pascal, one of the nicest features for debugging is nested comments. This is provided as a *Debugging* feature *only* in Turbo C. Nowhere does Borland state that you should use that feature in normal programming. 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. I do not think that a compiler which supports Nested Comments (in either command-line or integrated debugging modes) is *broken* at all. Much of Borland's C market exists from their Pascal programmers, and yes, it is hard to break old habits (be they good or bad). I think that this is a valid *option* but I agree with you, Bob, that it should not be the Standard. Elminster, the Sage of Shadowdale (austin@bucsf.bu.edu) 700 Commonwealth Box 2094, Boston, MA 02215 I am *NOT* a C guru, I just try to be. I *AM* a Pascal guru, when I want to be.