comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: [Ada95] Private non-generic children of generics not allowed
Date: Mon, 26 Apr 2021 09:41:46 -0700 (PDT)	[thread overview]
Message-ID: <77699289-3e50-4fae-a416-8ce11965f368n@googlegroups.com> (raw)
In-Reply-To: <78fd99c3-538d-4981-af11-c1885df36575n@googlegroups.com>

Children of generic packages are also generic.

generic
package P is
end P;

generic
package P.C is
end P.C;

private generic
package P.R is
end P.R;

Problem with private children is that they are not there for the client. Thus they can only be instantiated within another package:

package body P.C is
  package Inst is new P.R;
end P.C;

  reply	other threads:[~2021-04-26 16:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26 15:43 [Ada95] Private non-generic children of generics not allowed Vincent Marciante
2021-04-26 16:41 ` AdaMagica [this message]
2021-04-26 16:53   ` Vincent Marciante
2021-04-26 17:16     ` AdaMagica
2021-04-28 12:09       ` Vincent Marciante
2021-04-28 17:57         ` AdaMagica
2021-04-29  8:57 ` AdaMagica
2021-04-29 10:20   ` Vincent Marciante
2021-04-29 11:02     ` Egil H H
2021-04-29 17:17       ` Vincent Marciante
2021-04-29 17:43         ` AdaMagica
2021-04-29 19:29           ` Vincent Marciante
2021-04-30 12:56             ` AdaMagica
2022-04-28  0:07               ` Thomas
2022-05-19 19:59                 ` Indra Anita
replies disabled

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