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,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-06 13:26:56 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!worldnet.att.net!207.35.177.252!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> <3FA3B412.AF3BEB96@fakeaddress.nil> <3FA6D275.924D5750@fakeaddress.nil> <1067951806.729117@master.nyc.kbcfp.com> <1068123815.335508@master.nyc.kbcfp.com> <3FAAB12E.C7593B45@fakeaddress.nil> In-Reply-To: <3FAAB12E.C7593B45@fakeaddress.nil> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 06 Nov 2003 16:12:23 -0500 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1068153112 198.96.223.163 (Thu, 06 Nov 2003 16:11:52 EST) NNTP-Posting-Date: Thu, 06 Nov 2003 16:11:52 EST Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:2171 Date: 2003-11-06T16:12:23-05:00 List-Id: Gautier Write-only wrote: >>Hyman Rosen: > [...] > >>>for an example of the latter form. It contains >>> with ADA.TEXT_IO, ADA.CALENDAR, ADA.CHARACTERS.LATIN_1; >>> use ADA.TEXT_IO, ADA.CHARACTERS.LATIN_1; >>> >>>So upon seeing a with/use pair, I have to read it carefully to >>>see if the two lists are the same, and if they are not, try to >>>figure out why that may be. > > Warren W. Gay VE3WWG: > >>The other problem is that you don't always want to "use" >>every with. Consider [...] > > It is exactly what the author of the above code wanted, > not to "use" ADA.CALENDAR. *This* would be a lot clearer if only > > with ADA.CALENDAR; > use ADA.TEXT_IO, ADA.CHARACTERS.LATIN_1; > > was sufficient (this is the "implicit 'with'" variant) - or > > with ADA.CALENDAR; > with and use ADA.TEXT_IO, ADA.CHARACTERS.LATIN_1; But as soon as you designate that, someone else will want another variation of your "with and use" to use all elements in the path. ;-) > All that is a question of style, project, taste, security, > about the usage of "use", which is already in the language. > The purpose of the proposal is not to reintroduce "use" or > changing any style rule, but *only* to make the life > easier and programs clearer when (and only when) we use > "use" as a context clause. Well, I think the group has already responded to this (and more), so I won't repeat my own opinion about it. ;-) -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg