Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!tut!tukki!tarvaine From: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Newsgroups: comp.lang.c Subject: Re: Nested Comments in C -- A recent experience Message-ID: <3690@tukki.jyu.fi> Date: 11 Mar 90 10:30:21 GMT References: <1523@wacsvax.OZ> <4320@daffy.cs.wisc.edu> <1990Mar11.065712.9798@usenet.ins.cwru.edu> Reply-To: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Organization: University of Jyvaskyla, Finland Lines: 18 In article <1990Mar11.065712.9798@usenet.ins.cwru.edu> crds@pyrite.som.cwru.edu (Glenn A. Emelko) writes: >If the C compiler understood nested comments it would FORCE >programmers to match them, preventing wasted hours of debugging on >annoying problems like the above at the expense of a few milliseconds >of additional compile time. Turbo C has a compile-time switch for allowing nested comments. The only use for it I've come up with so far is catching missing comment delimiters: If the program compiles differently with the switch than without it, it's more than likely that a comment delimiter has been omitted. -- Tapani Tarvainen (tarvaine@jyu.fi, tarvainen@finjyu.bitnet)