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-Language: ENGLISH,ASCII X-Google-Thread: 103376,7a0a9e20706a8332 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-23 04:30:03 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!grolier!oleane.net!oleane!proxad.net!feeder2-1.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail Message-ID: <3B349ABF.4FADC85D@free.fr> From: Carbonne Damien X-Mailer: Mozilla 4.75 [fr] (X11; U; Linux 2.2.17-21mdk i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT naming convention for seperate? References: <3B2102E9.729F3F9@sonetcom.com> <3b22038c_1@Newsfeeds.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Sat, 23 Jun 2001 11:30:02 GMT NNTP-Posting-Host: 212.27.46.228 X-Complaints-To: abuse@proxad.net X-Trace: nnrp1.proxad.net 993295802 212.27.46.228 (Sat, 23 Jun 2001 13:30:02 CEST) NNTP-Posting-Date: Sat, 23 Jun 2001 13:30:02 CEST Organization: Guest of ProXad - France Xref: archiver1.google.com comp.lang.ada:9056 Date: 2001-06-23T11:30:02+00:00 List-Id: "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