comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: circular unit dependency
Date: Fri, 23 May 2003 07:12:24 -0500
Date: 2003-05-23T07:12:24-05:00	[thread overview]
Message-ID: <n4oza.21780$ev1.10215@fe04.atl2.webusenet.com> (raw)
In-Reply-To: 3Knza.694005$OV.649162@rwcrnsc54


"Jeffrey Creem" <jeff@thecreems.com> wrote in message
news:3Knza.694005$OV.649162@rwcrnsc54...
>
> "Mirko Aigner" <Mirko.Aigner@alcatel.de> 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
>
>





  reply	other threads:[~2003-05-23 12:12 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23  9:20 circular unit dependency Mirko Aigner
2003-05-23 11:37 ` Jeffrey Creem
2003-05-23 12:12   ` David C. Hoos [this message]
2003-05-23 18:08 ` Stephen Leake
2003-05-24 22:12   ` Robert I. Eachus
2003-05-26  8:05   ` Mirko Aigner
  -- strict thread matches above, loose matches on Subject: below --
2005-01-04 18:31 R
2005-01-04 23:45 ` Randy Brukardt
2005-01-05  8:35   ` Martin Krischik
2005-01-05  8:55     ` Duncan Sands
2005-01-05  0:26 ` Stephen Leake
1998-05-26  0:00 Brendan Reville
1997-05-24  0:00 jdlopez
1997-05-24  0:00 ` Michael F Brenner
1997-05-25  0:00 ` Jon S Anthony
1997-05-26  0:00   ` John G. Volan
1997-05-26  0:00     ` Fergus Henderson
1997-05-27  0:00     ` Jon S Anthony
1997-05-28  0:00 ` John G. Volan
1997-06-01  0:00   ` John G. Volan
1997-05-31  0:00 ` Kevin Cline
1997-05-31  0:00   ` John G. Volan
1997-06-01  0:00     ` Kevin Cline
1997-06-01  0:00       ` John G. Volan
1997-06-02  0:00     ` John G. Volan
1997-05-31  0:00   ` Matthew Heaney
     [not found]     ` <33932F31.4399@sprintmail.com>
1997-06-02  0:00       ` Matthew Heaney
1997-06-03  0:00         ` W. Wesley Groleau (Wes)
1997-06-03  0:00           ` John G. Volan
1997-06-03  0:00         ` John G. Volan
1997-06-05  0:00           ` Matthew Heaney
1997-06-05  0:00             ` John G. Volan
1997-06-06  0:00             ` Stephen Schmid
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox