Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Ada 2005 : Mult...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 5822 of 5874
Post > Topic >>

Ada 2005 : Multiple Inheritance / Interface / limited

by nblanpain@[EMAIL PROTECTED] Jul 22, 2008 at 03:16 AM

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
 




 2 Posts in Topic:
Ada 2005 : Multiple Inheritance / Interface / limited
nblanpain@[EMAIL PROTECTE  2008-07-22 03:16:11 
Re: Ada 2005 : Multiple Inheritance / Interface / limited
Ludovic Brenta <ludovi  2008-07-22 04:04:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 27 20:58:19 CDT 2008.