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,2746dae4f161c04e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-26 22:29:13 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news-xfer.siscom.net!news2.euro.net!newsfeed.wirehub.nl!easynet-monga!easynet.net!news1.ebone.net!news.ebone.net!newsrouter.euroconnect.net!newsfeed.song.fi!nntp.inet.fi!central.inet.fi!inet.fi!read2.inet.fi.POSTED!not-for-mail From: "Anders Wirzenius" Newsgroups: comp.lang.ada References: <20011121.053507.496987743.3460@web.de> <20011121.113942.76065818.1437@web.de> <9tgoha$cib$1@drcomp.erfurt.thur.de> <3BFD6A62.123E6F49@acm.org> Subject: Re: Use of use, was Re: Gtkada-Prob X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Tue, 27 Nov 2001 06:28:02 GMT NNTP-Posting-Host: 194.251.142.2 X-Trace: read2.inet.fi 1006842482 194.251.142.2 (Tue, 27 Nov 2001 08:28:02 EET) NNTP-Posting-Date: Tue, 27 Nov 2001 08:28:02 EET Organization: Sonera corp Internet services Xref: archiver1.google.com comp.lang.ada:17023 Date: 2001-11-27T06:28:02+00:00 List-Id: Preben Randhol wrote in message ... >On Mon, 26 Nov 2001 06:47:54 GMT, Anders Wirzenius wrote: >> Preben Randhol wrote in message ... >> >> I started to avoid the "use" a while ago and am nowadays merrily returning >> to code coded since that. >> I second your advice, but why do you include the word "beginner" in your >> advice? >> Doesn't it apply to all programmers? > >Yes, but as a beginner these things can be a bit confusing. If you are >experienced you should know what you have done wrong when the compiler >complains about this :-) > If I am a beginner and am advised to avoid "use" then when do I know that I am not a beginner any more? Apparently I just KNOW. :-)) Well, there was another reason for asking my question: I sometimes long for a systematic list of the origin of utilized functions and procedures. The compiler chooses, say, procedure Put from one of my, say, five withed packages. The compiler could easily produce a list of extended procedure names where it is shown from which package the Put is fetched. It could be accomplished with an additional switch (Gnat: -gnatxn, resulting in an extended ali file). The output should show the package name and the library or source file where the package exists. Or have I missed an already existing possibility? Anders