comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com (Ted Dennison)
Subject: Re: child packages and nested packages
Date: 28 Mar 2002 06:49:22 -0800
Date: 2002-03-28T14:49:22+00:00	[thread overview]
Message-ID: <4519e058.0203280649.2b6d7788@posting.google.com> (raw)
In-Reply-To: 6a6390b8.0203280151.6681fd8f@posting.google.com

okellogg@freenet.de (Oliver Kellogg) wrote in message news:<6a6390b8.0203280151.6681fd8f@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.

Why can't "type_in_a" be put inside the same "A" package as "B"? That
would compile, and would seem to be the natural mapping of this.



  reply	other threads:[~2002-03-28 14:49 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
2002-03-28 14:49   ` Ted Dennison [this message]
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