🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2312

Re: comment style

#2312
From: Karl Heuer
Date: Mon, 21 Jan 1991 02:22
22 lines
1863 bytes
In article <936@hadron.COM> jsdy@hadron.UUCP (Joseph S. D. Yao) writes:
>I got code [containing "//" comments] from [somewhere] some 12-15 years ago
>(was that you, Karl? since you claimed to be first)

No, I wasn't the first; I merely reinvented the idea before knowing about the
related implementations (BCPL and C++).  But I never wrote any code that way.
(I did once experiment with having my own preprocessor, and I think I wrote a
handful of programs using it, but I quickly abandoned that in favor of writing
portable code.)

>It was the devil to get out so that a "real" (from Ken & Dennis' pen) C
>compiler could compile it.  The point is, if it's not in C, don't use it.

Exactly.  Though I'm willing to bend the rules for stuff that can be simulated
without too much trouble: I used void before it was universally available,
since a simple typedef suffices to make it acceptable to voidless compilers; I
write new code with prototypes, using a style that my deprotoizer can parse.
Since I have a tool that knows the lexical structure of C and C++, I wouldn't
hesitate to start using "//" comments immediately if I thought they'd be part
of standard C in the near future.

Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint
Technical Details
Message-ID: <1991Jan21.022252.21568@dirtydog.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!spdcc!ima!dirtydog!karl
References: <1991Jan04.164355.15674@sco.COM> <1991Jan5.203530.20366@Think.COM> <1991Jan9.172618.22445@clear.com> <14883@smoke.brl.mil> <936@hadron.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!spdcc!ima!dirtydog!karl
From: karl@ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: comment style
Message-ID: <1991Jan21.022252.21568@dirtydog.ima.isc.com>
Date: 21 Jan 91 02:22:52 GMT
References: <1991Jan04.164355.15674@sco.COM> <1991Jan5.203530.20366@Think.COM> <1991Jan9.172618.22445@clear.com> <14883@smoke.brl.mil> <936@hadron.COM>
Sender: news@dirtydog.ima.isc.com (NEWS ADMIN)
Organization: Interactive Systems
Lines: 22