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-15 08:41:13 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!news.hispeed.ch!not-for-mail From: Gautier Write-only Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: Sat, 15 Nov 2003 17:40:54 +0100 Organization: Cablecom Newsserver Message-ID: <3FB65716.85E1F775@fakeaddress.nil> References: <3FB1609E.D56E315C@fakeaddress.nil> NNTP-Posting-Host: dclient80-218-92-116.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newshispeed.ch 1068914468 23895 80.218.92.116 (15 Nov 2003 16:41:08 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Sat, 15 Nov 2003 16:41:08 +0000 (UTC) X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:2517 Date: 2003-11-15T17:40:54+01:00 List-Id: Russ: > > No, absolutely not. The implied "with" would apply only to "use" > > clauses in the context section at the top of the file. You need > > something at the top of the file to let the reader (and the compiler) > > know what external packages will be used. Chad R. Meiners: > Which would imply that use clauses would have very different semantics based > upon the scope in which they are placed. This is not a problem, because they are *already* very different. To take Robert examples, use ASCII; procedure Junk is begin null; end Junk; (won't compile) is not at all the same as procedure Junk is use ASCII; begin null; end Junk; (meaningful). The example Outer / Inner is interesting. package Outer is package Inner is end; procedure Dummy; end Outer; use Outer.Inner; package body Outer is procedure Dummy is begin null; end Dummy; end Outer; is accepted by GNAT 3.15p but rejected by ObjectAda 7.2.2 ! At least it could speak for the "with and use" syntax of the proposal. ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!