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 10.236.26.200 with SMTP id c48mr17339469yha.46.1416798981654; Sun, 23 Nov 2014 19:16:21 -0800 (PST) X-Received: by 10.50.33.39 with SMTP id o7mr113142igi.14.1416798981553; Sun, 23 Nov 2014 19:16:21 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!nntp.giganews.com!s7no1442257qap.1!news-out.google.com!ks2ni26662igb.0!nntp.google.com!h15no6516214igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 23 Nov 2014 19:16:21 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:9:1100:e95:c8fe:c12:d5ba:acab; posting-account=XrU4OgoAAADEPkoULFhRQzFYU74OGc9X NNTP-Posting-Host: 2601:9:1100:e95:c8fe:c12:d5ba:acab References: <520f8f3d-b345-4ef8-ac41-ead78edde92a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5c1c28a5-6149-4dd4-bdc8-9cbe86dbc705@googlegroups.com> Subject: Re: Can .ads be compiled alone? From: rriehle@itu.edu Injection-Date: Mon, 24 Nov 2014 03:16:21 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:23680 Date: 2014-11-23T19:16:21-08:00 List-Id: On Saturday, November 15, 2014 11:16:50 AM UTC-8, Robert A Duff wrote: > rriehle@itu.edu writes: > > > The code you just posted is directly copied from Ada Distilled. The > > specification will compile just fine since it is only a specification. > > You must compile the specification before the body. They should be > > compiled separately. > > That depends on the compiler. Some Ada compilers work the way you > describe above. GNAT does not. > > Not that in GNAT, there are no requirements on compilation order. > > - Bob All the code in Ada Distilled was compiled with GNAT. Much of it used AdaGide for the editor. Richard