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: border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!us.feeder.erje.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Can .ads be compiled alone? Date: Sat, 15 Nov 2014 14:17:13 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <520f8f3d-b345-4ef8-ac41-ead78edde92a@googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1416079007 17157 192.74.137.71 (15 Nov 2014 19:16:47 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 15 Nov 2014 19:16:47 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:6o30NfiwlGJGna2dv+yF7zXMuxM= Xref: number.nntp.giganews.com comp.lang.ada:190693 Date: 2014-11-15T14:17:13-05:00 List-Id: 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