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 04:29:54 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!207.69.154.101.MISMATCH!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail Message-ID: <3FB3793A.60908@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) 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> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 13 Nov 2003 12:29:53 GMT NNTP-Posting-Host: 209.165.22.196 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1068726593 209.165.22.196 (Thu, 13 Nov 2003 07:29:53 EST) NNTP-Posting-Date: Thu, 13 Nov 2003 07:29:53 EST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:2446 Date: 2003-11-13T12:29:53+00:00 List-Id: Assuming for a minute that it was a mistake, there is no way to change that now. There is way too much code out there that would be brokent by doing that. I agree that it is good style (in general) to scope the use clause to just where it si needed. However, there are occasions when I might want something to simply appear as if it were a part of the language and then the more global use clause might be acceptable. Its a judgement call and we've had that whole debate numerous times. Given that the issue *is* debatable, its best to leave the capability there. MDC Anders Wirzenius wrote: > > 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 > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "Trying is the first step towards failure." -- Homer Simpson ======================================================================