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,fce663eaf40b52f6 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Manifesto against Vector Date: 07 May 2004 06:00:52 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1083906321 26948 62.49.19.209 (7 May 2004 05:05:21 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 7 May 2004 05:05:21 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: controlnews3.google.com comp.lang.ada:343 Date: 2004-05-07T06:00:52+01:00 List-Id: Dmitry A. Kazakov writes: > This might work with bodies, but it does not with > specifications. What would you do with: > > with Foo; > procedure P (); My view is that declarations should always contain the fully-qualified type if it comes from a package that you had to with, even if you've used the package; in other words, don't 'use' until the end of a declarative region. Saves a vast amount of grief finding where things come (I know that GNAT will often retain enough context after a failed compilation for browsing to work, but it's just so much easier for the writer to tell the reader where stuff is supposed to come from!) Exceptions: Ada.Text_IO Packages in a hierarchy -- Simon Wright 100% Ada, no bugs.