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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.70.1 with SMTP id t1mr4466662ioa.101.1510251026914; Thu, 09 Nov 2017 10:10:26 -0800 (PST) X-Received: by 10.157.3.71 with SMTP id 65mr263406otv.13.1510251026814; Thu, 09 Nov 2017 10:10:26 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!186no569812itu.0!news-out.google.com!193ni1669iti.0!nntp.google.com!186no569811itu.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 9 Nov 2017 10:10:26 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=84.131.54.131; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 84.131.54.131 References: <6a5368c5-f015-4dcb-9291-e77b40fa1bf1@googlegroups.com> <39330489-ec8b-481f-bcff-a5b7d1a2d8e3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7c68eace-8a03-4bfc-806d-aa78a453f97f@googlegroups.com> Subject: Re: some trivial questions? From: AdaMagica Injection-Date: Thu, 09 Nov 2017 18:10:26 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1418080634 X-Received-Bytes: 2149 Xref: feeder.eternal-september.org comp.lang.ada:48785 Date: 2017-11-09T10:10:26-08:00 List-Id: Am Donnerstag, 9. November 2017 17:58:19 UTC+1 schrieb Dmitry A. Kazakov: > On 2017-11-09 16:36, AdaMagica wrote: > >> Now the "right" way: > >> > >> package Foo is new Bar; > >> with Foo; -- For the sake of "showing dependencies" > >> use Foo; -- That's right! > > > > But that's weird. > > > > declare > > package P is ... end P; > > with P; -- You really want this? Bah! > > use P; > > As weird as > > with Ada.Text_IO; > use Ada.Text_IO; At library level, we need with: function F (X: T) return S; with F; package P is ---- At local level, you also want with?: declare function F(X:T) return S; with F; package P is ... It's becoming still weirder...