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,CP1252 X-Google-Thread: 103376,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-13 10:06:27 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!cyclone.bc.net!news.uunet.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <3FACCBFB.9D288CF2@fakeaddress.nil> <3FAF8C99.5040201@noplace.com> <1068561335.260886@master.nyc.kbcfp.com> <_rGsb.39$pv1.0@read3.inet.fi> In-Reply-To: <_rGsb.39$pv1.0@read3.inet.fi> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Thu, 13 Nov 2003 12:51:51 -0500 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1068745874 198.96.223.163 (Thu, 13 Nov 2003 12:51:14 EST) NNTP-Posting-Date: Thu, 13 Nov 2003 12:51:14 EST Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:2454 Date: 2003-11-13T12:51:51-05:00 List-Id: Anders Wirzenius wrote: > "Chad R. Meiners" wrote in message > news:bov88d$217c$1@msunews.cl.msu.edu... > >>First note that I am not saying that your way is cluttered, but I > > prefer > >>with Ada.Text_IO; >>with Ada.Integer_Text_IO; >> >>use Ada.Text_IO; >>use Ada.Integer_Text_IO; >> >>because I like keeping the two in separate regions of my code and > > the lines > > What had the "Ada community" (present and potential) lost if the > use_clause had not been allowed in the context_clause (ARM 10.1.2)? > What if the use_clause had to be put in a declarative part? > I often see code which have the "with aaa; use aaa;" in the beginning > of the code and the only place where the aaa is needed is way down in > the code. Shouldn�t a proper place for the use_close be (like Chad > writes), in the (separate) region where it is needed? The with_clause > stays at the beginning of the code to declare the context. > > Anders I agree with this whole-heartedly for anything more than a simple "hello world" program. This keeps the name clashes to a minimum, and it prevents unintended references to functions/procedures in the wrong package. There may be some exceptions to this, but these should be kept to a bare minimum, IMHO. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg