comp.lang.ada
 help / color / mirror / Atom feed
From: Marin Condic <condicma@bogon.pwfl.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: <3829E70A.FEC8915B@pwfl.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.

Here's a guess: Some compilers provide the ability to get character data
embedded into the ROMable part of the code. For practical purposes, this is
a "comment". The idea is that you may want to embed module information,
version numberings, copyright notices ("When you care enough to steal the
very best!") or other information that may ride along with the ROM image. It
sounds like a "pragma Comment" might be doing this job.

You are quite correct, of course, observing that it is not a standard
pragma, so if MaryAnn Atkinson posts the compiler brand and version, maybe
we can be of more help.

MDC
--
Marin David Condic
If you hurry you can, for a short time only, still find me at:
Real Time & Embedded Systems, Propulsion Systems Analysis
United Technologies, Pratt & Whitney, Large Military Engines
M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600
***To reply, remove "bogon" from the domain name.***

Visit my web page at: http://www.mcondic.com/






  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   ` Marin Condic [this message]
1999-11-11  0:00     ` Ted Dennison
1999-11-12  0:00       ` Robert Dewar
1999-11-10  0:00   ` Tucker Taft
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