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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,7a0a9e20706a8332 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-23 07:30:45 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: GNAT naming convention for seperate? Date: Sat, 23 Jun 2001 09:29:37 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3B2102E9.729F3F9@sonetcom.com> <3b22038c_1@Newsfeeds.com> <3B349ABF.4FADC85D@free.fr> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 993306643 82864 137.194.161.2 (23 Jun 2001 14:30:43 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 23 Jun 2001 14:30:43 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:9057 Date: 2001-06-23T09:29:37-05:00 You are quite correct. I had quoted the rule from memory, rather than looking it up. In my mind, I had precluded the possibility of ever needing the special rule, because I would never name a unit with the initial identifier having only one character in its name -- i.e., a name like 'A' is not sufficiently descriptive to use. ----- Original Message ----- From: "Carbonne Damien" Newsgroups: comp.lang.ada To: Sent: June 23, 2001 6:30 AM Subject: Re: GNAT naming convention for seperate? > "David C. Hoos, Sr." a �crit : > > > The naming convention for separates is the same as the naming > > convention for any unit. > > > > The rule is that any dot (.) in the unit name is replaced by a > > dash (-) in the filename, and that all letters in the filename are > > lower case. > > GNAT documentation 3.13p (File Naming Rule) says: > ------------------------------------------- > The default file name is determined by the name of the unit that the file > contains. The name is formed by taking the full expanded name of the unit and > replacing the separating dots with > hyphens and using lowercase for all letters. > > An exception arises if the file name generated by the above rules starts with > one of the characters a,g,i, or s, and the second character is a minus. In this > case, the character tilde is used in > place of the minus. The reason for this special rule is to avoid clashes with > the standard names for child units of the packages System, Ada, Interfaces, and > GNAT, which use the prefixes > s- a- i- and g- respectively. > > The file extension is `.ads' for a spec and `.adb' for a body. The following > list shows some examples of these rules. > > `main.ads' > Main (spec) > `main.adb' > Main (body) > `arith_functions.ads' > Arith_Functions (package spec) > `arith_functions.adb' > Arith_Functions (package body) > `func-spec.ads' > Func.Spec (child package spec) > `func-spec.adb' > Func.Spec (child package body) > `main-sub.adb' > Sub (subunit of Main) > `a~bad.adb' > A.Bad (child package body) > ------------------------------------------- > So there are cases where '.' is replaced by '~' > > Damien > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >