From: Tucker Taft <stt@averstar.com>
Subject: Re: Pragma Comment -- What does it do?
Date: 1999/11/10
Date: 1999-11-10T00:00:00+00:00 [thread overview]
Message-ID: <3829E7ED.3C11D958@averstar.com> (raw)
In-Reply-To: 80ck2v$deq$1@nnrp1.deja.com
Ted Dennison wrote:
>
> In article <19991110154624.8876.rocketmail@web210.mail.yahoo.com>,
> comp.lang.ada@ada.eu.org wrote:
> > Does anyone know what do the following pragmas do?
> >
> > 1. Pragma Comment
> > I see it inside some code, and it compiles fine,
> > but it appears nowhere else thereafter.
> > So I wonder, if its just a line inside the source,
> > why dont I just have a comment line -- to begin with?
>
> The language defines no such pragma. Consult your compiler documentation
> to see what they do with it. Since unrecognized pragmas are ignored, its
> quite possible that this is just someone's gooberish way of commenting
> their code. If so, please do change it to a *real* comment.
On some implementations, this has the effect of embedding the
comment in the generated code (e.g. as a static initialized string),
which is sometimes useful for a copyright message, or a revision number
indicator. Unix programs like "strings" and "what" can be used to
view these messages.
> T.E.D.
--
-Tucker Taft stt@averstar.com http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.) Burlington, MA USA
next prev parent reply other threads:[~1999-11-10 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-10 0:00 Pragma Comment -- What does it do? MaryAnn Atkinson
1999-11-10 0:00 ` Ted Dennison
1999-11-10 0:00 ` Tucker Taft [this message]
1999-11-10 0:00 ` Marin Condic
1999-11-11 0:00 ` Ted Dennison
1999-11-12 0:00 ` Robert Dewar
1999-11-11 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox