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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:5a06:: with SMTP id v6mr16405659ita.160.1559806489238; Thu, 06 Jun 2019 00:34:49 -0700 (PDT) X-Received: by 2002:a9d:6c13:: with SMTP id f19mr13426455otq.76.1559806489079; Thu, 06 Jun 2019 00:34:49 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g15no147453itd.0!news-out.google.com!l126ni124itl.0!nntp.google.com!i64no148696iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 6 Jun 2019 00:34:48 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=165.225.84.81; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 165.225.84.81 References: <28facad3-c55f-4ef2-8ef8-004925b7d1f1@googlegroups.com> <87woi0xtwm.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4a0438de-1f1d-4469-aae4-908854d378ea@googlegroups.com> Subject: Re: Why .ads as well as .adb? From: Maciej Sobczak Injection-Date: Thu, 06 Jun 2019 07:34:49 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56495 Date: 2019-06-06T00:34:48-07:00 List-Id: > 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? > Hmm. The same copy-paste applies to C (header files vs .c files). I have never said C is any better in this regard. The discussion started with the observation that some languages manage not to have this separation at all. So we are not comparing Ada to C (superiority of bracketing styles being another subthread), we are comparing Ada/C with say Java or Python. > If your point is only that most present-day compilers are (internally) > multi-pass, that is true, but I don't see the relevance. The relevance is that the argument about the difficulty the compiler might have when parsing interdependent files that have no separate specs is now not relevant. :-) -- Maciej Sobczak * http://www.inspirel.com