From: noiraud@cenaath.cena.dgac.fr
Subject: Generic child unit renaming
Date: 1999/04/21
Date: 1999-04-21T00:00:00+00:00 [thread overview]
Message-ID: <7fkvbt$q1r$1@ilana.cenaath.cena.dgac.fr> (raw)
I would like to rename Math_Extension an extension of the
generic package Ada.Numerics.Generic_Elementary_Functions.
Thus, I created a generic child unit :
generic
package Ada.Numerics.Generic_Elementary_Functions.Extensions is
function Log10 (X : Float_Type'Base) return Float_Type'Base;
function Asin (X : Float_Type'Base) Return Float_Type'Base
renames Arcsin;
end Ada.Numerics.Generic_Elementary_Functions.Extensions;
and I tried the following renaming :
with Ada.Numerics.Generic_Elementary_Functions.Extensions;
generic package Math_Extension renames
Ada.Numerics.Generic_Elementary_Functions.Extensions;
The GNAT compiler refused it :
>>> invalid prefix in selected component "Generic_Elementary_Functions".
I read that renaming is possible if realized in the parent unit, but
I can't do it because Generic_Elementary_Functions belongs to the
predefined library.
Could anyone help me ?
Thanks in advance.
next reply other threads:[~1999-04-21 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-21 0:00 noiraud [this message]
1999-04-22 0:00 ` Generic child unit renaming dennison
1999-04-25 0:00 ` Matthew Heaney
1999-04-26 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox