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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Interesting containers problem. Date: Tue, 21 Apr 2015 10:45:04 +0200 Organization: cbb software GmbH Message-ID: <1lju9b80gm9ry$.1rm13ahnw8j9k$.dlg@40tude.net> References: <8def4a86-5835-4368-b414-63e12f1074e8@googlegroups.com> <17apiyy7txazx.15t3uckthh5b7$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: enOx0b+nfqkc2k+TNpOejg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:25567 Date: 2015-04-21T10:45:04+02:00 List-Id: On Tue, 21 Apr 2015 10:28:32 +0200, J-P. Rosen wrote: > Le 21/04/2015 10:06, Dmitry A. Kazakov a écrit : >> We could introduce "checked use" as compared the "unchecked" one Ada has. >> The difference would be that if "use P" would hide anything in the scope >> the language would require explicit renaming. E.g. > ??? > Use never hides anything, if something is directly visible, it stays so > even in the presence of use clauses. Yes, but the distinction is irrelevant for practical use. The name cannot be used for whatever reason. > In your example, there is "mutual hiding", which is a way of saying that > neither declaration is directly visible (and therefore no risk of > confusion). You are free to add renamings if you want to make something > directly visible. > > So, I don't see what your syntax would bring. It would warns early about the problem, which is very difficult to tack later, especially with generic instantiations. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de