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: 103376,be9ede6456a2a7ea X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!e2g2000vbe.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: GNATBench 2.1.0 (free) and file/procedure naming case Date: Tue, 10 Mar 2009 14:27:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1f55fcbb-dc38-4c23-a581-f0d475547dfa@e2g2000vbe.googlegroups.com> References: <2dm5pg.h8m.ln@hunter.axlog.fr> NNTP-Posting-Host: 82.20.239.213 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1236720457 13824 127.0.0.1 (10 Mar 2009 21:27:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 10 Mar 2009 21:27:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e2g2000vbe.googlegroups.com; posting-host=82.20.239.213; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4994 Date: 2009-03-10T14:27:37-07:00 List-Id: On Mar 10, 12:28=A0pm, Jean-Pierre Rosen wrote: > John McCabe a =E9crit :> However the latest thing I have is that GNATBenc= h 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#Na= ming-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)