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: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: Why .ads as well as .adb? Date: Thu, 06 Jun 2019 12:51:06 -0700 Organization: None to speak of Message-ID: References: <28facad3-c55f-4ef2-8ef8-004925b7d1f1@googlegroups.com> <87woi0xtwm.fsf@nightsong.com> <4a0438de-1f1d-4469-aae4-908854d378ea@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="0ad8b66ef2f1a8fe8c740ae2f33d0263"; logging-data="1082"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VFWq05Cz9px4Yr8bqTIOH" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:TtBXZeQdDMW0j9YKtZrfRymHbno= sha1:Xt2Q505xDY4FSzgt0qp7We3YMuo= Xref: reader01.eternal-september.org comp.lang.ada:56504 Date: 2019-06-06T12:51:06-07:00 List-Id: Maciej Sobczak writes: >> Usually the body is initialized as a copy of the relevant parts of the >> spec. GPS even has a menu command for this, which generates an .adb >> file, with null subprogram bodies, from an .ads file. > > Isn't it a proof that tools are trying to fix the language problem? Not at all. It's evidence that some users find such as tool useful. Other users, I suspect most of them, wouldn't use that particular feature, since they'd prefer to write the .ads and .adb as separate files in the first place. For example, I might write the .ads file first, then copy it to the .adb file and edit it (since a lot of the text is duplicated). A lot of people *prefer* having separate .ads and .adb files. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */