From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,447840d42a580dc0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-28 06:49:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: child packages and nested packages Date: 28 Mar 2002 06:49:22 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0203280649.2b6d7788@posting.google.com> References: <6a6390b8.0203230702.14c071c1@posting.google.com> <6a6390b8.0203280151.6681fd8f@posting.google.com> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1017326962 5022 127.0.0.1 (28 Mar 2002 14:49:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 28 Mar 2002 14:49:22 GMT Xref: archiver1.google.com comp.lang.ada:21758 Date: 2002-03-28T14:49:22+00:00 List-Id: 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.