🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2303

Re: C needs reliable comments

#2303
From: David W. Lauderback
Date: Sun, 20 Jan 1991 11:37
21 lines
1398 bytes
In article <2893@cirrusl.UUCP> dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes:
>C badly needs a way of commenting out a block easily.  It needs
>something like this:
>
>#comment  /* begins in column 1; everything following is a comment */
>... stuff to be commented out ...
>... nac esu #tnemmoc ot peek logla sersu yppah ...
>#endc    /* first occurrence of #endc in column one ends #comment block */
>
>The #comment...#endc blocks do not nest, and are required to be in
>column 1, thus avoiding all necessity for parsing tokens.  What's nice

But if they don't nest, you've defeated the purpose because there may be
a small section you've already commented out and now want to comment out
a much larger area (for a while).  Should I have to remove the #endc that
already exists?
-- 
David W. Lauderback (a.k.a. uunet!cai!davel)
Century Analysis Incorporated
Disclaimer: Any relationship between my opinions and my employer's
	    opinions is purely accidental.
Technical Details
Message-ID: <1991Jan20.113722.16735@cai.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cai!davel
References: <2893@cirrusl.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cai!davel
From: davel@cai.uucp (David W. Lauderback)
Newsgroups: comp.std.c
Subject: Re: C needs reliable comments
Message-ID: <1991Jan20.113722.16735@cai.uucp>
Date: 20 Jan 91 11:37:22 GMT
References: <2893@cirrusl.UUCP>
Reply-To: davel@cai.UUCP (David W. Lauderback)
Organization: Century Analysis Incorporated
Lines: 21