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 X-Received: by 2002:a02:ad17:: with SMTP id s23mr3819960jan.137.1559436496896; Sat, 01 Jun 2019 17:48:16 -0700 (PDT) X-Received: by 2002:aca:5f07:: with SMTP id t7mr3340230oib.175.1559436496715; Sat, 01 Jun 2019 17:48:16 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!i64no888194iti.0!news-out.google.com!l135ni523itc.0!nntp.google.com!i64no888191iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 1 Jun 2019 17:48:16 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.202.169.252; posting-account=JSxOkAoAAADa00TJoz2WZ_46XrZCdXeS NNTP-Posting-Host: 50.202.169.252 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <28facad3-c55f-4ef2-8ef8-004925b7d1f1@googlegroups.com> Subject: Why .ads as well as .adb? From: John Perry Injection-Date: Sun, 02 Jun 2019 00:48:16 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:56431 Date: 2019-06-01T17:48:16-07:00 List-Id: Hello I understand that Ada, like Modula-2 and Modula-3, and arguably like C++, r= equires a definition file (.ads) as well as an implementation file (.adb). = With Oberon, Wirth moved away from definition files, using a symbol to indi= cate which module identifiers should be exported. (Someone else may have do= ne this before him; it's just that I'm most familiar with this history.) Mo= st languages I'm familiar with these days do something similar, either via = public/private or some other mechanism. As far as I can tell, though, Ada has stuck with the two separate files, ra= ther than, say, generating an .ads from an .adb with export markup. Is there a reason Ada hasn't moved to this simpler structure? john perry