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-14 04:37:58 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: Fri, 14 Nov 2003 12:37:57 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <1068561335.260886@master.nyc.kbcfp.com> <_rGsb.39$pv1.0@read3.inet.fi> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1068813477 10887 134.91.1.34 (14 Nov 2003 12:37:57 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 14 Nov 2003 12:37:57 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:2488 Date: 2003-11-14T12:37:57+00:00 List-Id: Anders Wirzenius wrote: : 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. I'm wondering whether a "use" deep down might indicate that this piece of code doesn't really belong in this unit? (I like this feature, but do I like something here that I shouldn't?) -- Georg