From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,688957833fe9655b X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: Pragma Comment -- What does it do? Date: 1999/11/10 Message-ID: <3829E7ED.3C11D958@averstar.com>#1/1 X-Deja-AN: 547072118 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: <19991110154624.8876.rocketmail@web210.mail.yahoo.com> <80ck2v$deq$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-10T00:00:00+00:00 List-Id: 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