From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: organizing deep source trees with child packages
Date: Fri, 14 Oct 2011 04:40:03 +0200
Date: 2011-10-14T04:40:03+02:00 [thread overview]
Message-ID: <op.v3blo11hule2fv@index.ici> (raw)
In-Reply-To: j7845n$qq$1@munin.nbi.dk
Le Fri, 14 Oct 2011 03:44:21 +0200, Randy Brukardt <randy@rrsoftware.com>
a écrit:
> 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 and
> file
> names
Seems good. Instead of patching GNAT to make it use another convention, a
tool could automatically generate a series of “for Spec ("Unit") use
"Path";” and “for Body ("Unit") use "Path";” 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/gnat_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.
--
“Syntactic sugar causes cancer of the semi-colons.” [Epigrams on
Programming — Alan J. — P. Yale University]
“Structured Programming supports the law of the excluded muddle.” [Idem]
Java: Write once, Never revisit
next prev parent reply other threads:[~2011-10-14 2:40 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-12 23:38 organizing deep source trees with child packages Greg Moncreaff
2011-10-13 1:27 ` Yannick Duchêne (Hibou57)
2011-10-13 2:07 ` Greg Moncreaff
2011-10-13 3:52 ` Yannick Duchêne (Hibou57)
2011-10-13 3:55 ` Yannick Duchêne (Hibou57)
2011-10-13 4:21 ` Per Sandberg
2011-10-13 8:20 ` Stephen Leake
2011-10-13 13:19 ` Greg Moncreaff
2011-10-13 14:18 ` Ludovic Brenta
2011-10-13 22:25 ` Yannick Duchêne (Hibou57)
2011-10-14 1:44 ` Randy Brukardt
2011-10-14 2:40 ` Yannick Duchêne (Hibou57) [this message]
2011-10-16 12:38 ` Stephen Leake
2011-10-14 7:27 ` Dmitry A. Kazakov
2011-10-14 7:42 ` Yannick Duchêne (Hibou57)
2011-10-16 12:51 ` Stephen Leake
2011-10-16 13:43 ` Dmitry A. Kazakov
2011-10-16 18:51 ` Shark8
2011-10-16 19:19 ` Ludovic Brenta
2011-10-17 7:04 ` Simon Wright
2011-10-17 7:19 ` Ludovic Brenta
2011-10-17 7:48 ` Simon Wright
2011-10-17 7:56 ` Ludovic Brenta
2011-10-17 10:27 ` Simon Wright
2011-10-17 13:37 ` Ludovic Brenta
2011-10-16 20:20 ` Yannick Duchêne (Hibou57)
2011-10-17 7:09 ` Simon Wright
2011-10-17 8:07 ` Dmitry A. Kazakov
2011-10-18 11:12 ` Stephen Leake
2011-10-18 13:07 ` Dmitry A. Kazakov
2011-10-18 16:55 ` Simon Wright
2011-10-18 18:25 ` Ludovic Brenta
2011-10-18 18:57 ` Simon Wright
2011-10-18 22:00 ` Bill Findlay
2011-10-19 6:28 ` Simon Wright
2011-10-19 8:29 ` Dmitry A. Kazakov
2011-10-19 11:52 ` Yannick Duchêne (Hibou57)
2011-10-19 12:33 ` Dmitry A. Kazakov
2011-10-20 11:00 ` Stephen Leake
2011-10-19 13:45 ` Bill Findlay
2011-10-19 1:52 ` Stephen Leake
2011-10-18 17:31 ` Niklas Holsti
2011-10-18 18:38 ` Ludovic Brenta
2011-10-19 1:55 ` Stephen Leake
2011-10-19 10:41 ` Dirk Craeynest
2011-10-19 1:51 ` Stephen Leake
2011-10-19 9:03 ` Dmitry A. Kazakov
2011-10-19 9:52 ` Ludovic Brenta
2011-10-19 12:46 ` Dmitry A. Kazakov
2011-10-19 16:43 ` Ludovic Brenta
2011-10-19 20:01 ` Yannick Duchêne (Hibou57)
2011-10-19 20:03 ` Ludovic Brenta
2011-10-20 10:50 ` Stephen Leake
2011-10-20 12:09 ` Dmitry A. Kazakov
2011-10-14 11:55 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox