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 04:37:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc54.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: <3ECDE7D1.9010507@alcatel.de> Subject: Re: circular unit dependency X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <3Knza.694005$OV.649162@rwcrnsc54> NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc54 1053689855 66.31.5.146 (Fri, 23 May 2003 11:37:35 GMT) NNTP-Posting-Date: Fri, 23 May 2003 11:37:35 GMT Organization: AT&T Broadband Date: Fri, 23 May 2003 11:37:35 GMT Xref: archiver1.google.com comp.lang.ada:37685 Date: 2003-05-23T11:37:35+00:00 List-Id: "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. 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.