comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: parent package referring to child
Date: Wed, 10 Oct 2007 07:46:30 -0700
Date: 2007-10-10T07:46:30-07:00	[thread overview]
Message-ID: <1192027590.723556.107430@o80g2000hse.googlegroups.com> (raw)
In-Reply-To: <1192008292.808925.227730@r29g2000hsg.googlegroups.com>

On Oct 10, 2:24 am, eliben <eli...@gmail.com> wrote:


> Why does it make sense that two siblings can see each other in their
> specs when they "with" each other

You can't have two siblings "with" each other in their specs.  One can
"with" the other, but not both.  You cannot declare a package
Parent.Child1 that with's Parent.Child2, and at the same time
Parent.Child2 with'ing Parent.Child1.  One of the siblings has to come
first.  ("Limited with" can help get around some of the problems.)

> but a parent can't see a child ?

Think about it.  Something has to come first.  If B "with's" A, then A
has to exist before B can be compiled (i.e. A's specification).  Can a
child come into existence before its parent?

                         -- Adam




  reply	other threads:[~2007-10-10 14:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10  6:23 parent package referring to child eliben
2007-10-10  9:07 ` Georg Bauhaus
2007-10-10  9:24   ` eliben
2007-10-10 14:46     ` Adam Beneschan [this message]
2007-10-10 19:26   ` Simon Wright
2007-10-10 14:59 ` Matthew Heaney
2007-10-10 18:54   ` Vadim Godunko
2007-10-10 19:32     ` Matthew Heaney
2007-10-10 20:20       ` Adam Beneschan
2007-10-11  4:12         ` Randy Brukardt
2007-10-11 15:21           ` Adam Beneschan
2007-10-19 12:45           ` Vadim Godunko
2007-10-10 19:51   ` Matthew Heaney
2007-10-10 17:06 ` Jeffrey R. Carter
2007-10-10 19:17 ` anon
2007-10-11  9:45 ` george
2007-10-12  4:15   ` Jeffrey R. Carter
2007-10-12  9:51     ` Georg Bauhaus
replies disabled

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