From: sjw <simon.j.wright@mac.com>
Subject: Re: GNATBench 2.1.0 (free) and file/procedure naming case
Date: Tue, 10 Mar 2009 14:27:37 -0700 (PDT)
Date: 2009-03-10T14:27:37-07:00 [thread overview]
Message-ID: <1f55fcbb-dc38-4c23-a581-f0d475547dfa@e2g2000vbe.googlegroups.com> (raw)
In-Reply-To: 2dm5pg.h8m.ln@hunter.axlog.fr
On Mar 10, 12:28 pm, Jean-Pierre Rosen <ro...@adalog.fr> wrote:
> John McCabe a écrit :> However the latest thing I have is that GNATBench doesn't appear to
> > maintain the casing I use for files/folders and procedure. For
> > example, I put in TestAdaProj as the project name and MyMain as the
> > main procedure and it creates folders and files called testadaproj and
> > mymain.adb respectively. Is there something I've done wrong here that
> > anyone can think of.
>
> Maybe you are confused between unit names and file names. In the Ada
> world, we care about units (the content), not so much about files (the
> container).
>
> In the case of Gnat, it has precise rules for matching unit names with
> file names, and it requires all *file* names to be lowercase. This is
> because case is not significant in Ada; there must be some convention to
> make sure that BLAH Blah and bLaH all fetch the same file - here blah.ads.
>
> In short: name your units as you please, and let the environment choose
> the appropriate file name for you.
I don't think this can be right. See the GNAT Project Manager page on
*file* naming:
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gnat_ugn_unw/Naming-Schemes.html#Naming-Schemes
Personally, though, I'd go with the default: lower-case filenames,
mixed-case Ada names (and, John, I think you'd have a better chance of
getting GNATbench to use mixed case in some predictable way if you
Used_Underscores ratherThanRunningThingsTogether)
next prev parent reply other threads:[~2009-03-10 21:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-09 15:41 GNATBench 2.1.0 (free) and file/procedure naming case John McCabe
2009-03-09 19:50 ` britt.snodgrass
2009-03-10 11:38 ` John McCabe
2009-03-10 12:28 ` Jean-Pierre Rosen
2009-03-10 21:27 ` sjw [this message]
2009-03-11 8:34 ` Jean-Pierre Rosen
2009-03-16 20:19 ` Brian Gaffney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox