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-14 01:05:57 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!newsfeed.stueberl.de!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> <_rGsb.39$pv1.0@read3.inet.fi> 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: Date: Fri, 14 Nov 2003 09:05:52 GMT NNTP-Posting-Host: 194.251.142.2 X-Complaints-To: abuse@inet.fi X-Trace: read3.inet.fi 1068800752 194.251.142.2 (Fri, 14 Nov 2003 11:05:52 EET) NNTP-Posting-Date: Fri, 14 Nov 2003 11:05:52 EET Organization: Sonera corp Internet services Xref: archiver1.google.com comp.lang.ada:2482 Date: 2003-11-14T09:05:52+00:00 List-Id: "Warren W. Gay VE3WWG" wrote in message news:mwPsb.8015$fB3.463973@news20.bellglobal.com... > 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 > > I agree with this whole-heartedly for anything more than > a simple "hello world" program. This keeps the name Examples in text books are most often short programs like "hello world". The majority of those seems to have a "with aaa; use aaa;" at the beginning. The examples in text books have a heavy influence on the readers coding habits. I would prefer the examples to have the use clause down in the code, even if it looks like crossing the river to get some water. Anders