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,51e16ccc6a07b0c7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-23 05:17:46 PST Path: archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!news.webusenet.com!pc01.webusenet.com!fe04.atl2.webusenet.com.POSTED!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada References: <3ECDE7D1.9010507@alcatel.de> <3Knza.694005$OV.649162@rwcrnsc54> Subject: Re: circular unit dependency MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Fri, 23 May 2003 08:01:23 EDT Date: Fri, 23 May 2003 07:12:24 -0500 Xref: archiver1.google.com comp.lang.ada:37687 Date: 2003-05-23T07:12:24-05:00 List-Id: "Jeffrey Creem" wrote in message news:3Knza.694005$OV.649162@rwcrnsc54... > > "Mirko Aigner" wrote in message > news:3ECDE7D1.9010507@alcatel.de... > > Hi Again !! > > > > Any way to prevent this compiler error (circular unit dependency) > > without deleting one of the "with" statements ?! > > > > The answer is almost certainly no. It is hard to be sure without seeing the > exact source code > but if you have two "specs" withing each other, you have a problem. > > > Is there any way to make sure that on spec is only once "included" ?! > > No. Withing is not the same as #include. But even the #included files have to have ifdefs to insure that the file is #included only once. > > > You probably needs to break this dependancy by creating a 3rd package spec. > Problems like this are usually (not always) an indication of a poor design. > You really are better off trying to get rid of it by re-thinking the > approach rather than coming up with a workaround. > > > > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >