comp.lang.ada
 help / color / mirror / Atom feed
From: okellogg@freenet.de (Oliver Kellogg)
Subject: Re: child packages and nested packages
Date: 28 Mar 2002 01:51:50 -0800
Date: 2002-03-28T09:51:50+00:00	[thread overview]
Message-ID: <6a6390b8.0203280151.6681fd8f@posting.google.com> (raw)
In-Reply-To: 6a6390b8.0203230702.14c071c1@posting.google.com

Some background:

The CORBA IDL to Ada mapping prescribes that nested IDL modules,
interfaces, and valuetypes be mapped to child packages.
This mapping is fundamentally flawed.
Example:

// IDL
module A {
   interface B {
      typedef short type_in_b;
      void my_method ();
   };

   typedef B::type_in_b type_in_a;
};

Since the interface B is mapped to a child package A.B, it is not 
possible to map type_in_a to Ada.

The solution is to map nested IDL units to nested Ada packages.

However, IDL interfaces and valuetypes require implementations.
For example, the IDL to Ada mapping prescribes that the 
implementation of interface A::B be done in a child package of 
A.B named A.B.Impl. It would certainly be the preferable to
maintain this mapping, but that's not possible with Ada right now.

-- Oliver Kellogg



  parent reply	other threads:[~2002-03-28  9:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-23 15:02 child packages and nested packages Oliver Kellogg
2002-03-25 15:01 ` Ted Dennison
2002-03-25 19:26   ` Oliver Kellogg
2002-03-25 22:31     ` Stephen Leake
2002-04-23 21:44     ` Oliver Kellogg
2002-04-24 14:52       ` Oliver Kellogg
2002-03-26 14:21   ` Marin David Condic
2002-03-28  9:51 ` Oliver Kellogg [this message]
2002-03-28 14:49   ` Ted Dennison
2002-03-28 18:30     ` Oliver Kellogg
2002-03-28 22:13       ` Ted Dennison
2002-03-29  5:30         ` Oliver Kellogg
2002-03-29 11:59           ` Sergey Koshcheyev
2002-03-29 15:14             ` Ted Dennison
2002-03-29 13:05           ` Oliver Kellogg
  -- strict thread matches above, loose matches on Subject: below --
2010-03-04  5:37 Oliver Kellogg
2010-03-04 14:55 ` Admin - Do Not Email
2010-03-04 16:12 ` Adam Beneschan
replies disabled

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