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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,668255690a14abb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-20 10:51:50 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-dallas!news-in-dallas.newsfeeds.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: Compiler complaint legal? Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 20 Jun 2001 13:51:39 EDT Organization: http://www.newsranger.com Date: Wed, 20 Jun 2001 17:51:39 GMT Xref: archiver1.google.com comp.lang.ada:8927 Date: 2001-06-20T17:51:39+00:00 List-Id: In article , M. A. Alves says... > >Package O defines type O. GNAT does not recognize the type here: > >with O; use O; >procedure O_Test is > Object: O; -- HERE I don't believe you can have packages and types with the same name in the same scope. Under the circumstances, I'd want to keep the package name. You should probably aviod naming things the same as their enclosing package. On the other hand, this is yet another reason to aviod the use clause. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com