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!feeder.eternal-september.org!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: some trivial questions? Date: Mon, 06 Nov 2017 17:52:47 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <6a5368c5-f015-4dcb-9291-e77b40fa1bf1@googlegroups.com> NNTP-Posting-Host: shell02.theworld.com Mime-Version: 1.0 Content-Type: text/plain X-Trace: pcls7.std.com 1510008766 17417 192.74.137.72 (6 Nov 2017 22:52:46 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 6 Nov 2017 22:52:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:fJlrabFy7kUmWR2acQ0FmBiyeRY= Xref: news.eternal-september.org comp.lang.ada:48750 Date: 2017-11-06T17:52:47-05:00 List-Id: gautier_niouzes@hotmail.com writes: > If "use" implied "with", there would be sometimes more ambiguities to > sort out (on "use A, B", B could then mean a library-level package > called B, or A.B (a child or a nested package of A). Ouch! No, that's not how "use A, B;" works. The things in A and B become potentially use-visible after the use clause, so the B cannot be something made use-visible by the "use A". So it's not equivalent to "use A; use B;". > That being said, I find a "with then use" clause would be useful. Yes, it would! But the "with then" is just noise. Plain "use" (in a context clause, which is the only place where a "with" clause is allowed) would be more readable. - Bob