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,79bbf7e359159d0d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-05 07:16:25 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: Subject: Re: RE: newbie can't get exceptions to work! Message-ID: <25%y6.2364$jz.201607@www.newsranger.com> Date: Thu, 05 Apr 2001 14:14:22 GMT NNTP-Posting-Host: 209.208.22.130 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 986480062 209.208.22.130 (Thu, 05 Apr 2001 10:14:22 EDT) NNTP-Posting-Date: Thu, 05 Apr 2001 10:14:22 EDT Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:6507 Date: 2001-04-05T14:14:22+00:00 List-Id: In article , Wilhelm Spickermann says... > > >On 05-Apr-01 Jeff Shipman wrote: >> When I try to compile, I get the following errors: >> >> use_gen_stack.adb:214:12: "STACK_ERROR" is not visible >> use_gen_stack.adb:214:12: multiple use clauses cause hiding > >You have created six _different_ exceptions, which are all called >STACK_ERROR. The compiler cannot possibly know which one You try to >handle. You could use names like FLOAT_STACK.STACK_ERROR etc. > >You will run into the same problems with the other entities of the >generic package. This is a very good example of why "newbies" should be discouraged from using the "use" clause. It just adds a whole extra possible level of confusion and screw-ups. Some people (myself included) believe that "use" should almost never be used. But even those who disagree with that view would agree that it has to be used wisely. A rank novice will not yet have the knowledge required to make that determination properly. So novices should really just stick with full named-notation. When they get their feet under them, then they can go and decide when "use" is appropriate and when it is not. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com