From: Vincent Marciante <marciant@li.net>
Subject: Re: Export instances of procedures
Date: 2000/04/25
Date: 2000-04-25T00:00:00+00:00 [thread overview]
Message-ID: <39061993.6210@li.net> (raw)
In-Reply-To: 3905CCCB.C48B9113@maths.unine.ch
Gautier wrote:
>
> Vincent Marciante wrote:
>
> > At this point, Read_8bit_AutoInt(...) requires a completion.
> > A subprogram renaming declaration (RM 8.5.4) can act as a completion but
> > an instantiation can't.
>
> Sorry for insisting on this question, but _why_ cannot the instance
> be considered as complete ? Well, the generic body could depend on an
> uncompletely defined type, hence the instance too. But the instance
> could also be clearly complete, couldn't it ? In my code, it is!
> In that case what does the "renames" bring ? Is it purely formal
> or does it reflect some indirections (indirect access to the procedure) ?
I only believe that I know the answer to the last question. Some
indirection _is_ (/can be?) involved. The kind of type conformance
called "subtype conformance" is related to "renaming as body". It lets
the renaming as body be implemented by a compiler as a simple jump
instruction. I read this description in section 6.2 on page 6-4 of the
Ada 95 Rationale.
>
> NB: I have seen in the Manual many topics about completion (3.10.1, 3.11.1,
> 7.6.1, 9.5.2) and the one that seems the most relevant here, 8.5.4(5) but
The Rationale section that I mentioned also refers to the RM Section on
Conformance rules (RM95 6.3.1).
> I didn't guess the motivations behind these rules...
> Maybe some wise one knows them or can decipher the Runes ? ;-)
Yes, I do not know the underlying reasons, I just remembered from
reading the RM.
> ______________________________________________________
> Gautier -- http://members.xoom.com/gdemont/gsoft.htm
next prev parent reply other threads:[~2000-04-25 0:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-18 0:00 Export instances of procedures Gautier
2000-04-18 0:00 ` Vincent Marciante
2000-04-25 0:00 ` Gautier
2000-04-25 0:00 ` Vincent Marciante [this message]
2000-04-25 0:00 ` Robert Dewar
2000-04-26 0:00 ` Gautier
2000-04-26 0:00 ` Tucker Taft
2000-04-19 0:00 ` Jean-Pierre Rosen
2000-04-19 0:00 ` Pascal Obry
2000-04-19 0:00 ` Jean-Pierre Rosen
2000-04-19 0:00 ` Pascal Obry
2000-04-20 0:00 ` Gautier
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox