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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,fce663eaf40b52f6 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Manifesto against Vector Date: Fri, 07 May 2004 08:33:00 +0200 Organization: AdaCL Message-ID: <1805948.kOkelemZ3r@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: news.t-online.com 1083919106 04 7163 y+f0GxBlKoNsSbHC 040507 08:38:26 X-Complaints-To: usenet-abuse@t-online.de X-ID: GFPfAkZBoeixw0yIB5x1o-uZbIxv224qinGZXvzKVptujdtm6IpdcY User-Agent: KNode/0.7.7 Xref: controlnews3.google.com comp.lang.ada:352 Date: 2004-05-07T08:33:00+02:00 List-Id: Jean-Pierre Rosen wrote: > > "Russ" <18k11tm001@sneakemail.com> a �crit dans le message de > [...] >> That may be so, but this particular issue is simple enough even for an >> ameteur like me. I know that >> >> with/use Ada.Integer_Text_IO; >> >> is cleaner and simpler than >> >> with Ada.Integer_Text_IO; use Ada.Inteqer_Text_IO >> >> And I also that it is a trivial matter to parse the former to produce >> the latter. I could do it myself in a few minutes. Nor does it break >> compatibility with legacy code in any way. I see absolutely no >> reasonable objection to "with/use" (but I have a funny feeling that I >> may soon be bombarded with a lot of unreasonable objections). > Therefore, you should *never* have a use clause as a context clause. If I > need to have something visible everywhere in a unit, I use the same style > as when the visibility is more restricted, i.e. I don't write: > > with Foo; use Foo; > procedure P is > ... > end P; > > but rather: > > with Foo; > procedure P is > use Foo; > ... > end P. And he is not the only one. I doing it just same way. > Allowing with/use would simply encourage a style that should be > discouraged altogether. QED. Right. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com