comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen.adalog@wanadoo.fr>
Subject: Re: Export instances of procedures
Date: 2000/04/19
Date: 2000-04-19T08:10:43+00:00	[thread overview]
Message-ID: <8djpm3$qef$2@wanadoo.fr> (raw)
In-Reply-To: 38FCBA00.992AA7A2@maths.unine.ch

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 833 bytes --]


Gautier <gautier.demontmollin@maths.unine.ch> a �crit dans le message :
38FCBA00.992AA7A2@maths.unine.ch...
> Hi. GNAT 3.10-3.12 doesn't seem to want to export directly,
> i.e. without "renames", instances of procedures out of a package.
> Is there an Ada rule behind it ? No explanation found in the Manual.
>
> 2) But, if I put: "procedure Read_8bit_AutoInit is new
Program_DMA( 16#58# );"
>    I get: "Read_8bit_Autoinit" conflicts with declaration at line 48
>    and of course: missing body for "Read_8bit_AutoInit" declared at line
48
>
> Strange, isn't it ?
An instantiation is both a spec AND a body.  Just remove the explicit spec,
and it will work.

--
---------------------------------------------------------
           J-P. Rosen (Rosen.Adalog@wanadoo.fr)
Visit Adalog's web site at http://pro.wanadoo.fr/adalog






  parent reply	other threads:[~2000-04-19  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     ` Robert Dewar
2000-04-26  0:00       ` Gautier
2000-04-25  0:00     ` Vincent Marciante
2000-04-26  0:00     ` Tucker Taft
2000-04-19  0:00 ` Jean-Pierre Rosen [this message]
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