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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,21aaebbd9205357c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.152.48.41 with SMTP id i9mr3528765lan.2.1363060745201; Mon, 11 Mar 2013 20:59:05 -0700 (PDT) Path: g1ni60693wig.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!usenetcore.com!border1.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Please list all the Ada libraries you know Date: Wed, 06 Mar 2013 16:09:52 +0100 Organization: Ada @ Home Message-ID: References: <69291c5f-ffce-4b48-a1c5-aa76f308082f@googlegroups.com> NNTP-Posting-Host: 2LxnHgvKpADqRhp9m0TZ+A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.14 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-03-06T16:09:52+01:00 List-Id: Le Wed, 06 Mar 2013 07:15:56 +0100, J-P. Rosen a =C3=A9= crit: > The other possible solution is to have a mapping from unit names to fi= le > names. This is what Object-Ada does (AFAIK), and roughly what you get > with pragma Source_File_Name. (which is a GNAT's implementation specific pragma) http://gcc.gnu.org/onlinedocs/gnat_rm/Pragma-Source_005fFile_005fName.ht= ml The above says: > The optional Index argument should be used when afile contains multipl= e = > units, and when you do notwant to use gnatchop to separate then into = > multiplefiles I did not knew GNAT can do this. Noted. It happened I read people coming= = from Pascal, complaining Ada (well Ada with GNAT) needs to many files = (separate files for spec and body). The next time I read this complaint,= I = will redirect to this GNAT pragma. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity