🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2335

Re: comment style

#2335
From: Doug Gwyn
Date: Sun, 13 Jan 1991 02:45
12 lines
937 bytes
In article <550@taumet.com> steve@taumet.com (Stephen Clamage) writes:
>/*
>	foo(bar);	// for foo-ish systems
>	fee(fie);	// for foo-ish or fee-sh systems
>*/
>The two line can be commented out with the /* */ even though they contain
>//-style comments.

By the way, when I include commented usage examples in my C source code
I use //-comments much as in the above example, because /*...*/ comments
do not nest and within /*...*/ comments //-comments do not break anything
whether the C compiler supports //-comments or not.
Technical Details
Message-ID: <14839@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!purdue!haven!adm!smoke!gwyn
References: <10852@darkstar.ucsc.edu> <1991Jan11.155326.3125@resam.dk> <550@taumet.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!purdue!haven!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: comment style
Message-ID: <14839@smoke.brl.mil>
Date: 13 Jan 91 02:45:07 GMT
References: <10852@darkstar.ucsc.edu> <1991Jan11.155326.3125@resam.dk> <550@taumet.com>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 12