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,FREEMAIL_FROM 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 05:04:12 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!ash.uu.net!spool.news.uu.net!not-for-mail Date: Thu, 06 Nov 2003 08:03:35 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 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> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1068123815.335508@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@aphelion.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1068123815 14742 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:2139 Date: 2003-11-06T08:03:35-05:00 List-Id: Preben Randhol wrote: > So what do you relaly mean? I mean that an Ada program can contain with a, b, c, d; use a, b, c, d; and it may also contain with a, b, c, d; use a, c, d; See 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. I was contrasting this with the repetition Ada requires, for example, at the end of a function, where you know that the repeated name must match the subprogram name, so you don't really have to think about it.