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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab3fadb7cac7363c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: using `use' : what is the best practice ? References: <57e75a35-058c-4172-9a3d-e11e7c5f7697@l2g2000prg.googlegroups.com> <03a8fa21-b515-41ea-bc65-b6ab85b0e88c@25g2000yqn.googlegroups.com> Date: Sun, 12 Jun 2011 03:55:12 -0400 Message-ID: <82y617qyan.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:AKgNuqhd9S0qNsySLBAJsM9BwQI= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: e43a74df470c7e029e66121564 Xref: g2news2.google.com comp.lang.ada:20742 Date: 2011-06-12T03:55:12-04:00 List-Id: Shark8 writes: > On Jun 7, 10:32 am, milouz wrote: >> Hi guys, >> Sorry with my annoying questions, but it's not easy to program in Ada >> after 20 years programming in asm / C ;-) >> >> Maybe a not so anecdotic question : when using the 'use' clause ? >> >> My first thought is that using 'use' is not good because it masks the >> package tree. > > While this is true it can be handy for reducing prefix-clutter, > as could a rename. So, while you may be hesitant to use them on the > package, I find using them in declare-blocks and subprograms to be > quite readable and usable. This is my policy as well; 'use' clauses are forbidden in package specs, and must be localized as much as possible in package bodies. -- -- Stephe