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!reader02.eternal-september.org!feeder.eternal-september.org!news.albasani.net!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Trivia: Ada packages are great! Date: Sun, 11 Nov 2018 01:01:11 -0600 Organization: JSA Research & Innovation Message-ID: References: <5af3c4a0-5856-47ec-bb05-0ae9f9bb24ff@googlegroups.com> <0c992f78-0496-4d8c-b046-fd75aae32599@googlegroups.com> Injection-Date: Sun, 11 Nov 2018 07:01:12 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="16431"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:54811 Date: 2018-11-11T01:01:11-06:00 List-Id: gautier_niouzes@hotmail.com> wrote in message news:0c992f78-0496-4d8c-b046-fd75aae32599@googlegroups.com... > Actually some Ada compilers let you organize files as you want. > For instance the following file compiles successfully with ObjectAda 10.0 > (the latest version), right now: Note that this is an Ada requirement -- many of the ACATS tests are structured this way. AdaCore considers GnatChop as part of the compiler for the purposes of meeting the standard exactly, and in particular as part of processing the ACATS. Source organization is nearly irrelevant to Ada (the language); one could stick all of the source into a single file and not worry about giving it names at all. (That's not a good idea for lots of reasons, but it's possible.) The language would also allow an implementation that normally didn't use source files at all. (But it has to have some way of processing the ACATS, which is necessary in order to provide portability between Ada compilers.) Randy.