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, MSGID_RANDY 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: Ted Dennison Subject: Re: Pragma Comment -- What does it do? Date: 1999/11/10 Message-ID: <80ck2v$deq$1@nnrp1.deja.com>#1/1 X-Deja-AN: 546989142 References: <19991110154624.8876.rocketmail@web210.mail.yahoo.com> X-Http-Proxy: 1.0 x27.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Nov 10 20:20:53 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-11-10T00:00:00+00:00 List-Id: 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. > 2. Pragma Elaborate The LRM goes over this in detail. ( http://www.adahome.com/rm95/rm9x-10-02-01.html ) Is there something about the definition you are having trouble with? > I see it in some package specifications(Ada designers > goofed up when they didnt include the word SPEC in > a specification package, but they did inlcude the word > BODY in the package body - but thats another story), > but if I remove it, then everything compiles just as well. > So far it doesnt matter if its there or not... Hmmm. I detect a Modula bias here. :-) Personally I like the fact that we don't have to spell out "specification", as my spelling is horrible. Even I have trouble misspelling "body". -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.