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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91d0d8cd28bbb477 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Implementing an Ada compiler and libraries. Date: Fri, 11 May 2007 14:20:50 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1178721451.073700.10730@y80g2000hsf.googlegroups.com> <6819scxft9y4$.1vlh83ppnnyrh$.dlg@40tude.net> <1178731280.075981.23040@u30g2000hsc.googlegroups.com> <8cu67r7wcdn7$.18rtn6g7506w2$.dlg@40tude.net> <1178818792.829214.95870@q75g2000hsh.googlegroups.com> <1178820387.916393.238070@y80g2000hsf.googlegroups.com> <4644179d$1_5@news.bluewin.ch> <1178905186.012787.167150@y80g2000hsf.googlegroups.com> <1178905389.489947.61760@o5g2000hsb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1178907650 16092 192.74.137.71 (11 May 2007 18:20:50 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 11 May 2007 18:20:50 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:0l1fOLYz+bCtg1ATNeIYpWpbHig= Xref: g2news1.google.com comp.lang.ada:15765 Date: 2007-05-11T14:20:50-04:00 List-Id: Lucretia writes: > On May 11, 6:39 pm, Lucretia wrote: >> > package one is ... end one; >> package two is ... end two; >> package body one is ... end one; >> package body two is ... end two; >> >> I take it, this is allowed? > > Also, further to the above, how do other compilers handle this? Janus? > SofCheck? Aonix uses the SofCheck front end. Anyway, an implementation is allowed to impose some requirements on the order of units within a file, but is not required to do so. It's the with_clauses that determine visibility of library units -- not their order in the source file. - Bob