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-12 23:32:38 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-stoc.telia.net!news-stoa.telia.net!telia.net!nntp.inet.fi!central.inet.fi!inet.fi!read3.inet.fi.POSTED!53ab2750!not-for-mail From: "Anders Wirzenius" Newsgroups: comp.lang.ada References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <3FACCBFB.9D288CF2@fakeaddress.nil> <3FAF8C99.5040201@noplace.com> <1068561335.260886@master.nyc.kbcfp.com> Subject: Re: Clause "with and use" MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <_rGsb.39$pv1.0@read3.inet.fi> Date: Thu, 13 Nov 2003 07:32:10 GMT NNTP-Posting-Host: 194.251.142.2 X-Complaints-To: abuse@inet.fi X-Trace: read3.inet.fi 1068708730 194.251.142.2 (Thu, 13 Nov 2003 09:32:10 EET) NNTP-Posting-Date: Thu, 13 Nov 2003 09:32:10 EET Organization: Sonera corp Internet services Xref: archiver1.google.com comp.lang.ada:2439 Date: 2003-11-13T07:32:10+00:00 List-Id: "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