From: haug@zesi.ruhrREMOVEIT.de (Haug Buerger)
Subject: GNAT errormessage question
Date: 1998/01/25
Date: 1998-01-25T00:00:00+00:00 [thread overview]
Message-ID: <c1.01.2K7NRr$00o@zesi.ruhr.de> (raw)
Dyn_Array_Test.adb:9:09: instantiation error at t.ads:14
Dyn_Array_Test.adb:9:09: controlled type must be declared at the library level
What is the meaning of this error message? What is
meant with library level?
Thanks
Haug
PS: The source that produced the error.
with Ada.Finalization;
generic
type Elem_Type is private;
Bound: in Positive;
package t is
type Dynamic_Array is tagged private;
private
type Dynamic_Array is new Ada.Finalization.Controlled with
record
Elements : Natural := 0;
end record;
end t;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
with t;
procedure Dyn_Array_Test is
procedure Test_Dyn_Array is
package Dyn_Ustr_Array is new t ( Unbounded_String,Bound=>1000 );
use Dyn_Ustr_Array;
da: Dynamic_Array;
begin
null;
end Test_Dyn_Array;
begin
Test_Dyn_Array1;
end Dyn_Array_Test;
next reply other threads:[~1998-01-25 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-25 0:00 Haug Buerger [this message]
[not found] ` <EnCrzw.EHw@world.std.com>
1998-01-26 0:00 ` GNAT controlled types Nick Roberts
1998-01-26 0:00 ` Jon S Anthony
[not found] ` <EnEu4B.6rr@world.std.com>
1998-01-27 0:00 ` Nick Roberts
1998-01-28 0:00 ` Tucker Taft
1998-01-28 0:00 ` Brian Rogoff
1998-01-29 0:00 ` Tucker Taft
1998-02-01 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