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: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Why .ads as well as .adb? Date: Mon, 3 Jun 2019 22:00:13 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <28facad3-c55f-4ef2-8ef8-004925b7d1f1@googlegroups.com> <1b5c8e3b-6443-4c4f-ad86-f655092c440d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 3 Jun 2019 20:00:14 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b7b4e139e89781ada0915edd44c6fd08"; logging-data="23619"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wETW6Xq3O73hB7HQXI38P6Sts+va2YlM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 Cancel-Lock: sha1:BTPVXbcdpGXRpM5ocNTgUhG9q1E= In-Reply-To: <1b5c8e3b-6443-4c4f-ad86-f655092c440d@googlegroups.com> Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:56452 Date: 2019-06-03T22:00:13+02:00 List-Id: On 6/3/19 9:29 PM, John Perry wrote: > On Monday, June 3, 2019 at 12:00:24 PM UTC-5, Jeffrey R. Carter wrote: >> >> First, let me point out that your specification is GNAT-specific, but your body >> is compiler-independent. I'm going to presume that the generation of the spec >> from the body was faulty. > > I'm not sure what you mean, but you & Nicholas have made me aware that the premises of my question are not entirely well-founded, in that I'm basing them on my experience with gnat, since I don't really have access to another Ada compiler (to my knowledge). I do recall reading that gnat has a particular addition to the requirements that every file contain only one compilation unit, so spec & impl need to be in separate files. I was jokingly pointing out that your Subject line (spec) refers to GNAT's default naming scheme, while the text of your post (body) was about general Ada features. -- Jeff Carter "I fart in your general direction." Monty Python & the Holy Grail 05