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:ac58:: with SMTP id m24mr22184887iti.65.1559635407501; Tue, 04 Jun 2019 01:03:27 -0700 (PDT) X-Received: by 2002:aca:805:: with SMTP id 5mr1278829oii.99.1559635407217; Tue, 04 Jun 2019 01:03:27 -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!i64no151070iti.0!news-out.google.com!l126ni149itl.0!nntp.google.com!g15no6468itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 4 Jun 2019 01:03:26 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.9.245.42; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 194.9.245.42 References: <28facad3-c55f-4ef2-8ef8-004925b7d1f1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <902508a5-f9c7-4396-a4e3-7de586b0c63a@googlegroups.com> Subject: Re: Why .ads as well as .adb? From: Maciej Sobczak Injection-Date: Tue, 04 Jun 2019 08:03:27 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56455 Date: 2019-06-04T01:03:26-07:00 List-Id: > If you have a body with many subprograms, how can you tell which ones > are intended to be exported, and which ones are private to the body? By annotating them appropriately? Keywords "private" or "export" or similar are commonly used for this purpose. Please note that your question could also refer to the concept of DLLs, which is not directly addressed by Ada (nor C++). Yet, somehow we do manage to solve this problem. > I don't agree. Yes, Ada is more verbose, but it tells you clearly what > is a declaration, and what are executable statements. I agree with the answer that Keith already wrote for this. -- Maciej Sobczak * http://www.inspirel.com