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,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6c2635acbf98f13d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-01 07:16:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.vmunix.org!newsfeed.hanau.net!news-fra1.dfn.de!newsfeed01.univie.ac.at!newsfeed01.highway.telekom.at!newsreader01.highway.telekom.at!not-for-mail From: "Herwig Lejsek" Newsgroups: comp.lang.ada Subject: graphs in ada (combining two generic units referencing each other) Date: Thu, 1 Aug 2002 16:17:19 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <3d494242$0$18838$91cee783@newsreader01.highway.telekom.at> NNTP-Posting-Host: M539P028.adsl.highway.telekom.at X-Trace: 1028211266 newsreader01.highway.telekom.at 18838 62.47.227.92 Xref: archiver1.google.com comp.lang.ada:27570 Date: 2002-08-01T16:17:19+02:00 List-Id: Hello! I've some problems programming graphs in ada. I've declared two generic Units one called simple_node(describing the type node) and one called simple arc(describing the type arc). However I need to have type arc to instantiate type node (because of adjacent lists) and I need to have type node to instantiate type arc (to define which node the arc is pointing to). But when I want to use both packages I have to instantiate one first needing the type of the second generic unit. Is there any possibility to describe a graph in such a way or do have to work around keeping nodes and arcs in one generic unit? Ciao, Herwig