comp.lang.ada
 help / color / mirror / Atom feed
From: Thomas <fantome.forums.tDeContes@free.fr.invalid>
Subject: Re: [Ada95] Private non-generic children of generics not allowed
Date: Thu, 28 Apr 2022 02:07:53 +0200	[thread overview]
Message-ID: <6269dad9$0$22072$426a74cc@news.free.fr> (raw)
In-Reply-To: 076b95b5-ff44-4c47-9b0b-50d4546c589bn@googlegroups.com

In article <076b95b5-ff44-4c47-9b0b-50d4546c589bn@googlegroups.com>,
 AdaMagica <christ-usch.grein@t-online.de> wrote:

> Vincent Marciante schrieb am Donnerstag, 29. April 2021 um 21:29:12 UTC+2:
> >  but I'm not sure that 
> > "implicit instantiation" would be the best way to describe it. I'll think 
> > about it.
> 
> It must be. As Gen.Priv, it has direct visibility to its parent Gen, as a 
> private child also in its parent's private part.
> When Gen is instantiated, say as Inst, Gen.Priv cannot have visibility into 
> Inst.

isn't it possible to consider that when a child is called from within 
the generic parent, it must be called from an instantiation of it,
and then it's not needed to re-do the instantiation within the generic 
parent?

it could be a rule that works even when the chils is public, but of 
course, the instantiation could be avoided only when it is called from 
within the generic parent, not when it is called from outside.

-- 
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/

  reply	other threads:[~2022-04-28  0:07 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
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 [this message]
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