From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: circular unit dependency
Date: 04 Jan 2005 19:26:13 -0500
Date: 2005-01-04T19:26:13-05:00 [thread overview]
Message-ID: <mailman.26.1104884795.527.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <1104863498.813484.201360@z14g2000cwz.googlegroups.com>
"R" <ruthless@poczta.onet.pl> writes:
> In main package I have:
>
> with base;
> with base.derv1;
> with base.derv2;
>
> derv1 has tagged record rec1 and derv2 has its rec2
>
> the derv1 and derv2 packages have overritten operator "+"
> which spec look like this:
>
> function "+"(left: rec1; right: base.derv2.rec2) return rec1;
>
> well - I need info about other record because it's the parameter of
> both function"+"
Yes.
> any idea?
You need to move the "+" to a place where both base.derv1.rec1 and
base.derv2.rec2 are visible.
That could be another package base.derv3.
Or a child of one of the packages.
Or you may be able to move the declarations of rec1 and rec2 to
base.ads.
This will be fixed in Ada 2005, via a "limited with" clause. See
http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-50217.TXT?rev=1.19
--
-- Stephe
next prev parent reply other threads:[~2005-01-05 0:26 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-04 18:31 circular unit dependency 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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-23 9:20 Mirko Aigner
2003-05-23 11:37 ` Jeffrey Creem
2003-05-23 12:12 ` David C. Hoos
2003-05-23 18:08 ` Stephen Leake
2003-05-24 22:12 ` Robert I. Eachus
2003-05-26 8:05 ` Mirko Aigner
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 ` Matthew Heaney
[not found] ` <33932F31.4399@sprintmail.com>
1997-06-02 0:00 ` Matthew Heaney
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
1997-06-03 0:00 ` W. Wesley Groleau (Wes)
1997-06-03 0:00 ` John G. Volan
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox