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!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Position of "use" Date: Tue, 15 Jul 2014 21:04:11 +0100 Organization: A noiseless patient Spider Message-ID: References: <53c4d9ec$0$6658$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="5cbec41b82bafb9ba55107f02585e18b"; logging-data="30692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Zi665e7LLAIsyYKVZRyuZzVvH0rH3lV4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:2mFFW5zeCGa8dkClouQMPLhVlUU= sha1:VqnrA7+MxBHLLdCHbTqWsGnc73k= Xref: news.eternal-september.org comp.lang.ada:20955 Date: 2014-07-15T21:04:11+01:00 List-Id: Adam Beneschan writes: > On Tuesday, July 15, 2014 10:01:12 AM UTC-7, Simon Wright wrote: > >> But, in Ada83, a *pragma*'s scope extended over the whole compilation >> (all the compilation units). > > I don't know that this was universally true; I don't see a general > rule to that effect. The rules vary from pragma to pragma. > STORAGE_UNIT and SYSTEM_NAME (since removed) had to appear at the > beginning of a compilation and applied to every compilation unit in > the compilation (this seems to anticipate the "configuration pragma" > rules of Ada 95 and beyond). ELABORATE, however, appears in a context > clause (as does the "use" clause) but only applies to one compilation > unit. Most of the pragmas were only allowed inside declarations. -gnat83 isn't perfect, and even with it gnatchop -c doesn't treat Storage_Unit as a configuration pragma.