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,c6567772e9f3871d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.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: organizing deep source trees with child packages Date: Fri, 14 Oct 2011 04:40:03 +0200 Organization: Ada @ Home Message-ID: References: <21c9e6bb-f4f7-4a00-bde7-68f2c1a42d01@q13g2000vby.googlegroups.com> <82ty7d1ewz.fsf@stephe-leake.org> <3486b228-abdd-490f-b4ef-9ee6b19f65fa@gy7g2000vbb.googlegroups.com> <7179717a-9837-476c-b564-6599a9c02acd@ff5g2000vbb.googlegroups.com> NNTP-Posting-Host: kZZSPQ1ESub3hB+UCZg5Hg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.51 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:21421 Date: 2011-10-14T04:40:03+02:00 List-Id: Le Fri, 14 Oct 2011 03:44:21 +0200, Randy Brukardt = a =C3=A9crit: > It wouldn't break the Ada semantics, but it would make it a lot harder= = > for > build tools and the like to function. (Especially simple tools like > "find"/"grep".) I don't see an example rigth away, but I still trust this argument. > And in any case, the solution for "overlong file names" is > to use shorter ones! There's no law (either in GNAT or Ada) requiring = = > anyone > to use 50 character file names. But this is nicer to give the file the exact same name as the unit it = contains, and with child packages, you easily reach long name (ans many = = files in a single directory). > Indeed, most of my Janus/Ada work still uses 8.3 file names: = > "J2Code_E.Ads", > for example. The actual package name is quite a bit longer. Janus/Ada = = > needs > only to be told once about the correspondence between package names an= d = > file > names Seems good. Instead of patching GNAT to make it use another convention, = a = tool could automatically generate a series of =E2=80=9Cfor Spec ("Unit")= use = "Path";=E2=80=9D and =E2=80=9Cfor Body ("Unit") use "Path";=E2=80=9D and= put these in the GPR file = or even preferably a GPR file included in a master GRP file. For reference, see: = http://www.adacore.com/wp-content/files/auto_update/gnat-unw-docs/html/g= nat_ugn_12.html#SEC130 This way, anyone can use any directory and file name layout he/she wish = = (and don't tell anyone if he/she prefer nested directories :-P ). > -- either by compiling the file manually or telling the build tool the= > name when asked. After that, Janus/Ada remembers the file names in the= > project files and does not need to told again (unless of course you = > decide > to make a fresh start with your projects and delete the old file). I like this idea of an interactive configuration :) Was thinking about a= = similar thing some days ago, for another purpose. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [Ep= igrams on = Programming =E2=80=94 Alan J. =E2=80=94 P. Yale University] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [Idem] Java: Write once, Never revisit