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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: GNAT GPL is proving...educational Date: Sun, 21 Jul 2013 20:26:10 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 22 Jul 2013 03:20:01 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="68bb7ebc916066bb85146425b2aa8565"; logging-data="5975"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/Rs3/Apr2j+DpsnX6gILFRjC+Mkt2BYQ=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:YDpS35RO3bqs5khmgXE9pWQ3ovM= X-Original-Bytes: 2315 Xref: number.nntp.dca.giganews.com comp.lang.ada:182616 Date: 2013-07-21T20:26:10-07:00 List-Id: On 07/21/2013 06:28 PM, Alan Jump wrote: > > package Stacks.Vector is > > one must use > > package Stacks_Vector is > > and then save the file as Stacks_Vector.ads. Stacks.Vector is a child package; its parent is package Stacks. Package Stacks must exist to have child packages. GNAT's default naming rules expect the specification of package Stacks_Vector to be in a file named stacks_vector.ads (all lower case) with its body in stacks_vector.adb. (Package Stacks.Vector would be in a files named stacks-vector.ad[sb].) Ada has nothing to say about source file names. Many compilers will accept any file names you care to use. GNAT also requires one compilation unit per source file, but this again is not something defined by the language, and many compilers will accept files containing multiple compilation units. Many experienced Ada software engineers find having a single compilation unit per file a good idea. -- Jeff Carter "If a sperm is wasted, God gets quite irate." Monty Python's the Meaning of Life 56