From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: The Dreaded "Missing Subunits"
Date: Sat, 14 Sep 2002 02:53:11 GMT
Date: 2002-09-14T02:53:11+00:00 [thread overview]
Message-ID: <wccd6rhqo2w.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: m3bs7244yk.fsf@lyon.act-europe.fr
Emmanuel Briot <briot@act-europe.fr> writes:
> Peter Amey <peter.amey@praxis-cs.co.uk> writes:
>
> > Are you really using the GNAT compiler with Rational naming
> > conventions? I don't know if that is the cause of your problem but it
> > certainly won't help. Rational (rather bizarrely in my view) use
> > xxx.1.ada for specs and xxx.2.ada for bodies.
I'm not sure why Peter thinks this convention is bizarre. In fact, it
has some nice properties. I think the Rational convention is quite
rational indeed. For example a simple wildcard can be use to select
interesting files, like "all the Ada source code in this directory",
"all the specs", "all the bodies", "the spec of package X and all its
children", "the specs and bodies of X and all its children". And when
you list them in alphabetical order they come out in a sensible order
(specs before bodies, parents before children). So for example if I
print out "*.ada" I get a stack of paper in a sensible order for
reading. With the GNAT convention, things come out in the wrong order.
>... The GNAT convention
> > (which automates builds) is to use:
> >
> > unit_name.ads for specs, unit_name.adb for bodies and
> > grandparent-parent-unit_name.adb for subunits.
>
> This is of course wrong.
True. GNAT can be told to use the Rational convention, and works just
fine.
However,...
>...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.
The sad thing is that although Ada is very portable in many respects,
the community of compiler vendors can't agree on file-naming
conventions. Contrast with C, where everybody knows what .h and .c
mean.
- Bob
next prev parent reply other threads:[~2002-09-14 2:53 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 22:49 The Dreaded "Missing Subunits" Peter Richtmyer
2002-09-13 8:16 ` Peter Amey
2002-09-13 8:51 ` Ada2005 temp solo child (was: " Peter Hermann
2002-09-14 2:33 ` Robert A Duff
2002-09-13 9:24 ` Emmanuel Briot
2002-09-13 20:46 ` Simon Wright
2002-09-14 0:25 ` Chad R. Meiners
2002-09-14 2:53 ` Robert A Duff [this message]
2002-09-14 20:20 ` Simon Wright
2002-09-16 13:48 ` Ted Dennison
2002-09-16 16:33 ` Keith Thompson
2002-09-17 2:42 ` Ted Dennison
2002-09-18 20:56 ` Robert A Duff
2002-09-19 8:26 ` Emmanuel Briot
2002-09-19 9:55 ` Preben Randhol
2002-09-19 10:53 ` Marc A. Criley
2002-09-19 11:26 ` Marin David Condic
2002-09-19 21:49 ` Dmitry A.Kazakov
2002-09-19 9:47 ` Preben Randhol
2002-09-20 2:42 ` Dmitry A.Kazakov
2002-09-19 15:33 ` Stephen Leake
2002-09-19 15:36 ` Preben Randhol
2002-09-20 22:31 ` Dmitry A.Kazakov
2002-09-16 15:10 ` Emmanuel Briot
2002-09-18 21:17 ` Robert A Duff
2002-09-18 22:41 ` Stephen Leake
2002-09-19 0:00 ` Robert A Duff
2002-09-19 1:39 ` Keith Thompson
2002-09-19 15:19 ` Stephen Leake
2002-09-19 4:02 ` Larry Kilgallen
2002-09-19 15:24 ` Stephen Leake
2002-09-19 20:34 ` Randy Brukardt
2002-09-19 14:44 ` Peter Richtmyer
2002-09-19 20:25 ` Randy Brukardt
2002-09-13 17:15 ` Mark Johnson
2002-09-13 20:56 ` Stephen Leake
2002-09-13 20:58 ` Simon Wright
2002-09-16 17:28 ` Peter Richtmyer
2002-09-19 20:05 ` Brian Gaffney
-- strict thread matches above, loose matches on Subject: below --
2002-09-19 1:41 Alexandre E. Kopilovitch
2002-09-19 14:25 ` Peter Hermann
2002-09-19 11:37 Grein, Christoph
2002-09-20 6:03 Grein, Christoph
2002-09-20 7:30 ` Preben Randhol
2002-09-20 14:01 ` Robert A Duff
2002-09-20 9:05 Grein, Christoph
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox