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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f24b55bcdf15c088 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-07 12:06:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!nnrp.oleane.net!skymaster.axlog.fr!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: use-clause Date: Wed, 7 Mar 2001 19:13:55 +0100 Organization: Adalog Message-ID: References: <3AA44F83.87CB23B7@acm.org> <3AA48DE9.A0650F21@emw.ericsson.se> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 983995201 14110 195.25.228.57 (7 Mar 2001 20:00:01 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 7 Mar 2001 20:00:01 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: supernews.google.com comp.lang.ada:5508 Date: 2001-03-07T19:13:55+01:00 List-Id: Let me point out (once more) that most people who object to the use clause consider it only as a context clause (i.e. immediately after the with). The whole point of the use clause is to allow you to open the visibility on a package only in the innermost context where you need it. What I personnaly do is (almost) never put a global use clause, but put it in each (small) subprogram that actually uses the package. This documents where the package is actually used, and it is easy to find where something is declared, since you only have to go to the beginning of the subprogram and consider which use clauses are in effect. Well, actually I don't even do that anymore. I just right-click under emacs.... -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://www.adalog.fr