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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4c019ad9cc913bbe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-16 08:11:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!lnewspost00.lnd.ops.eu.uu.net!emea.uu.net!read.news.fr.uu.net!not-for-mail Sender: briot@lyon.act-europe.fr Newsgroups: comp.lang.ada Subject: Re: The Dreaded "Missing Subunits" References: <1b585154.0209121449.ef12609@posting.google.com> <3D819EE7.3A69E5EB@praxis-cs.co.uk> From: Emmanuel Briot Reply-To: briot@act-europe.fr Date: 16 Sep 2002 17:10:58 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: lyon.act-europe.fr X-Trace: 1032189058 read.news.fr.uu.net 209 212.157.227.160 X-Complaints-To: abuse@fr.uu.net Xref: archiver1.google.com comp.lang.ada:29029 Date: 2002-09-16T17:10:58+02:00 List-Id: Robert A Duff writes: > >...Have a look in the documentation at pragma > > Source_File_Name, which provides handling for any possible naming scheme you > > can conceive. > > This is also of course wrong. The patterns supported by the pragma are > fairly limited, but I can "conceive" of many things. For example, if > you want to put all main procedures in files with a certain pattern, it > doesn't really work. Have a look at the more recent versions of GNAT (I don't know if the full support was already in 3.14p or was added later, although I think it was already there in 3.14p) for the project files. Also have a look at pragma Source_File_Name, where you associate a unit name with *any* file name you want. There is no notion of naming scheme, since you can use a different one for each unit and even for specs and bodies for a given unit. Of course, it used to be a pain to generate these pragma Source_File_Name by hand. There is now a tool called gnatname that will scan your source directories to generate the pragmas directly. So any naming scheme is supported, and yes, this is a challenge :-)