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: Robert Dewar Subject: Re: Pragma Comment -- What does it do? Date: 1999/11/12 Message-ID: <80hb6a$qhu$1@nnrp1.deja.com>#1/1 X-Deja-AN: 547754698 References: <19991110154624.8876.rocketmail@web210.mail.yahoo.com> <80ck2v$deq$1@nnrp1.deja.com> <3829E70A.FEC8915B@pwfl.com> <80ejip$q9t$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x30.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Nov 12 15:19:43 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-11-12T00:00:00+00:00 List-Id: In article <80ejip$q9t$1@nnrp1.deja.com>, Ted Dennison wrote: > Hmmm...clever. I suppose just putting that info in an unused > string might not do the job, as the string is liable to get > optimized away. Yes that's one reason, but another is that in many object formats there is a distinguished capability for providing module description strings of this kind (e.g. in VMS), and the pragma Ident or pragma Comment links to this capability. For example, if you run GNAT on VMS, you will find that the executable is tagged in this manner with the version number, and there are various tools in this environment that take advantage of this. Yes, in the lowest common denominator case, all this pragma does is put the string in the file somewhere, but in many cases, it does more than that. Robert Dewar Ada Core Technologies Sent via Deja.com http://www.deja.com/ Before you buy.