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,8b3d7c27160f8353,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-02 02:51:10 PST From: "Stuart Forster" Newsgroups: comp.lang.ada Subject: Package name duplication in Hierachical Libraries Date: Wed, 2 Jan 2002 10:51:23 -0000 X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 NNTP-Posting-Host: 172.31.166.178 Message-ID: <3c32e619$1@pull.gecm.com> X-Trace: 2 Jan 2002 10:51:05 GMT, 172.31.166.178 Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!172.31.166.178 Xref: archiver1.google.com comp.lang.ada:18440 Date: 2002-01-02T10:51:23+00:00 List-Id: I have a problem with duplicated package names in hierarchical libraries. The example below results in an infinite recursion of B.A.C where I was hoping for >Test B.A.C A.C > Is this the correct behaviour? I've only tried it on gnat 3.13p. package A is procedure C; end A; with Text_IO; package body A is procedure C is begin Text_IO.Put_Line("A.C"); end C; end A; package B is end B; package B.A is procedure C; end B.A; with A; with Text_IO; package body B.A is procedure C is begin Text_IO.Put_Line("B.A.C"); A.C; -- Instead of calling A.C calls B.A.C. end C; end B.A; with B.A; procedure Test is begin B.A.C; end Test;