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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f24b55bcdf15c088 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-05 23:14:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeed.icl.net!news.algonet.se!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erinews.ericsson.se!news.emw.ericsson.se!not-for-mail Message-ID: <3AA48DE9.A0650F21@emw.ericsson.se> From: Sven Nilsson Reply-To: sven.nilsson@emw.ericsson.se Organization: Ericsson Microwave Systems AB X-Mailer: Mozilla 4.75C-EMW [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada95 tutorials with sample code. References: <3AA44F83.87CB23B7@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 06 Mar 2001 08:12:41 +0100 NNTP-Posting-Host: 136.225.182.69 X-Trace: news.emw.ericsson.se 983862761 136.225.182.69 (Tue, 06 Mar 2001 08:12:41 MET) NNTP-Posting-Date: Tue, 06 Mar 2001 08:12:41 MET Xref: supernews.google.com comp.lang.ada:5453 Date: 2001-03-06T08:12:41+01:00 List-Id: I'm sorry if I disrupt this thread with a slightly off-topic question (which I'm sure has been discussed countless times before) BUT This use-thingy. Is it really ant good? I've only ever used Ada in HUGE projects with loads of people writing the code and I've found that the use-clause can be a real pain as it dosn't give you a clue as to where things are declared. Right now I'm teaching new arrivals about Ada 95 and I invariably tell them NOT to use the use-clause. Now, there're a lot of very clever and skilled people reading this news-group and I'd be interested in your feelings on "use". Is it a Do or Don't? Generally speaking? My Hello World would probably look something like this: -- "Hello, World" with Ada.Text_IO; procedure Hello_World is package Tio renames Ada.Text_IO; -- Rename common packages so I don't have to -- type in the whole thing every time I use it begin Tio.Put_Line("Howdy, World!"); -- Use Tio to access Ada.Text_IO end Hello_World; > -- "Hello, World!" program in Ada > > with Ada.Text_IO; > > use Ada.Text_IO; > procedure Hello_World is > -- null; > begin -- Hello_World > Put_Line (Item => "Hello, World!"); > end Hello_World; > -Sven