comp.lang.ada
 help / color / mirror / Atom feed
From: nblanpain@gmail.com
Subject: Ada 2005 : Multiple Inheritance / Interface / limited
Date: Tue, 22 Jul 2008 03:16:11 -0700 (PDT)
Date: 2008-07-22T03:16:11-07:00	[thread overview]
Message-ID: <e75b6564-ac6a-4804-bebb-bcf3ad53bedf@8g2000hse.googlegroups.com> (raw)

Hi,
I have a problem with multiple inheritance / limited :

package Interface1 is
   type T_Interface1 is limited interface;
   function Get_Value1 (This : in T_Interface1) return Integer is
abstract;
end Interface1;

package Interface2 is
   type T_Interface2 is limited interface;
   function Get_Value2 (This : in T_Interface2) return Integer is
abstract;
end Interface2;

with Interface1;
with Interface2;
package Test is
   type T_Test is limited new Interface1.T_Interface1 and
Interface2.T_Interface2 with record
      null;
   end record;
   overriding function Get_Value1 (This : in T_Test) return Integer;
   overriding function Get_Value2 (This : in T_Test) return Integer;
end Test;

The compilation error message is
test.ads:8:01: construct not allowed in this configuration
test.ads:8:01: entity "Ada.Tags.Osd_Table" not defined

Have you an explain?

Thanks,
Nicolas



             reply	other threads:[~2008-07-22 10:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 10:16 nblanpain [this message]
2008-07-22 11:04 ` Ada 2005 : Multiple Inheritance / Interface / limited Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox