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,f51e93dacd9c7fca
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2002-06-18 09:39:23 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!proxad.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: status of Ada STL?
Date: 18 Jun 2002 18:37:59 +0200
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References:
NNTP-Posting-Host: avelizy-103-1-2-64.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: wanadoo.fr 1024418362 6483 217.128.15.64 (18 Jun 2002 16:39:22 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 18 Jun 2002 16:39:22 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90
Xref: archiver1.google.com comp.lang.ada:26263
Date: 2002-06-18T16:39:22+00:00
List-Id:
Robert A Duff writes:
> I agree with this point. Saying "with X; use X;" is useless clutter
> when you could just say "use X;". (With child packages, X is often
> quite long, so saying it twice hinders readability.)
What about this, the use here is not possible:
package P is
X : Integer;
end P;
with P;
procedure P2 is
P : Integer;
procedure Proc is
-- use P; <- this is not possible because P integer
V : Integer;
begin
V := Standard.P.X; <- and you need full qualified name
end Proc;
begin
null;
end P2;
Also all the "with" are in the same places, easy to find, but "use" can be put
in any part of the code. And you certainly don't want to "use" all packages,
right ? All symbols visible ?
I still think that "with" and "use" is ok.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595