comp.lang.ada
 help / color / mirror / Atom feed
* Re: Ada2005 temp solo child
@ 2002-09-16  5:03 Grein, Christoph
  2002-09-17 14:06 ` Peter Hermann
  0 siblings, 1 reply; 12+ messages in thread
From: Grein, Christoph @ 2002-09-16  5:03 UTC (permalink / raw)


> ... The compiler has to look for the
> declarations in the parent (in order to determine if the child name is
> legal). Ada makes you declare almost everything before use. Why would
> this case be different? It doesn't feel much different to me than
> saying:
> 
>     Int := 10;
> 
> and complaining that the compiler shouldn't need a declaration of Int.

Another point to consider:

Ada95 removed unneeded library bodies. They were a source of problems when the 
spec was recompiled and the body forgotten.

Your proposal would add a new source of errors of this kind. Imagine there is a 
parent that is somehow lost. The compiler would not know that there should be a 
parent.

> That's what empty parent packages are for. It's only three lines of code!

So where is the problem in declaring empty packages?



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Ada2005 temp solo child
@ 2002-09-16  4:19 Grein, Christoph
  0 siblings, 0 replies; 12+ messages in thread
From: Grein, Christoph @ 2002-09-16  4:19 UTC (permalink / raw)


From: ica2ph@csv.ica.uni-stuttgart.de
> 
> In article <mailman.1031907902.8367.comp.lang.ada@ada.eu.org> you wrote:
> >> While developing an application, I have e.g. a parent.child
> >> but not yet a parent package, which may or may come later.
> >> Now my compiler forces me to have the parent.
> >> I would prefer the ada standard would force the compiler
> >> to allow parentless children.
> >> Did I ignore some important aspect?
> 
> > I do not know, but the request seems silly to me. Why is it so disturbing to 
create a 
> > dummy parent, which is still empty. It has to be created anyway eventually, 
so 
> > why not just now? If there will never be a parent, why have the hierarchy at 
> > all?
> 
> Haetten Sie meine Anfrage genau durchgelesen,
> dann haetten Sie mich nicht gleich beleidigen muessen.

Entschuldigen Sie bitte meine saloppe Ausdrucksweise - das war nicht als 
Beleidigung gedacht. Silly als Übersetzung von unsinnig, nicht blödsinnig... 
Nonesensical wäre vielleicht besser gewesen.

Trotzdem, mein Einwand bleibt bestehen. In meinen Augen macht dieser Vorschlag 
wirklich keinen Sinn.

Mit freundlichen Grüßen
Christoph Grein



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Ada2005 temp solo child (was: Re: The Dreaded "Missing Subunits"
@ 2002-09-13  8:59 Grein, Christoph
  2002-09-13 10:24 ` Ada2005 temp solo child ica2ph
  0 siblings, 1 reply; 12+ messages in thread
From: Grein, Christoph @ 2002-09-13  8:59 UTC (permalink / raw)


> While developing an application, I have e.g. a parent.child
> but not yet a parent package, which may or may come later.
> Now my compiler forces me to have the parent.
> I would prefer the ada standard would force the compiler
> to allow parentless children.
> Did I ignore some important aspect?

I do not know, but the request seems silly to me. Why is it so disturbing to create a 
dummy parent, which is still empty. It has to be created anyway eventually, so 
why not just now? If there will never be a parent, why have the hierarchy at 
all?



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-09-17 14:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16  5:03 Ada2005 temp solo child Grein, Christoph
2002-09-17 14:06 ` Peter Hermann
  -- strict thread matches above, loose matches on Subject: below --
2002-09-16  4:19 Grein, Christoph
2002-09-13  8:59 Ada2005 temp solo child (was: Re: The Dreaded "Missing Subunits" Grein, Christoph
2002-09-13 10:24 ` Ada2005 temp solo child ica2ph
2002-09-13 10:40   ` Preben Randhol
2002-09-13 11:41     ` Peter Hermann
2002-09-13 13:50       ` Dr. Michael Paus
2002-09-13 15:29         ` Preben Randhol
2002-09-13 21:08         ` Randy Brukardt
2002-09-13 21:00       ` Stephen Leake
2002-09-13 16:06     ` Robert A Duff
2002-09-13 16:28       ` Preben Randhol

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