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: border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Position of "use" Date: Tue, 08 Jul 2014 07:26:36 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 8 Jul 2014 05:26:34 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="23633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZPd2cI1UJYaiL2azjU3Ft" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:UxKbOjgaqpCni6XdEoZSV0PA5Xk= X-Enigmail-Version: 1.6 Xref: number.nntp.dca.giganews.com comp.lang.ada:187441 Date: 2014-07-08T07:26:36+02:00 List-Id: Le 07/07/2014 18:45, Adam Beneschan a écrit : >> In the first case, it will allow short names for other with/use clauses, >> > while in the second case it will be effective only inside the package. > Not true. This is illegal: > > with Ada; > use Ada; > with Strings.Unbounded; > package X is ... > > You can't use this as a substitute for "with Ada.Strings.Unbounded". Yes of course, I typed a bit too fast for "with", but it still applies to "use" clause as context clauses. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr