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,c360d0cfa1003043 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-07 07:16:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Novice Ada Programmer Stumped By Simple Type Declaration! Date: 06 Oct 2001 09:56:44 +0100 Organization: Pushface Message-ID: References: <3BBCB63C.96E484EA@san.rr.com> <3BBCD596.AF223388@san.rr.com> NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1002464138 nnrp-14:28665 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 6 Oct 2001 08:56:44 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:13855 Date: 2001-10-06T08:56:44+00:00 List-Id: Darren New writes: > (Incidentally, this is for the unit-test code for a > first-one-to-throw-away project, while I'm learning Ada, so the > over-use of "use" isn't as bad as it might be.) > > Thanks! I can't believe I spent two days trying to figure that one > out. Not to get at you, but you really should look at those two sentences together! Wouldn't it have been more effective to kill the "use" and accept the typing? GNAT will often tell you that it would be able to resolve a reference if only you put in a particular "use", best to qualify the name properly IMHO .. I find myself increasingly happy with using GNAT.IO or Ada.Text_IO or Ada.Calendar or ... stuff in the standard libraries, which quite often has been designed to work with "use". But for your own stuff, resist it.