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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,447840d42a580dc0,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-23 07:02:49 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: okellogg@freenet.de (Oliver Kellogg) Newsgroups: comp.lang.ada Subject: child packages and nested packages Date: 23 Mar 2002 07:02:49 -0800 Organization: http://groups.google.com/ Message-ID: <6a6390b8.0203230702.14c071c1@posting.google.com> NNTP-Posting-Host: 62.246.19.46 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1016895769 25059 127.0.0.1 (23 Mar 2002 15:02:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Mar 2002 15:02:49 GMT Xref: archiver1.google.com comp.lang.ada:21584 Date: 2002-03-23T15:02:49+00:00 List-Id: Hello CLA, How come child packages are only possible for library level packages? I now encountered a situation where I'd like to create a child package of a nested package: -- file: pkg.ads package Pkg is package Nested is type Object is tagged null record; end Nested; end Pkg; -- file: pkg-nested-child.ads package Pkg.Nested.Child is type Derived is new Object with null record; end Pkg.Nested.Child; (The only thing that crosses my naive mind is that this makes life harder for the Ada compiler in that if a file pkg-nested.ads cannot be found then the compiler would need to look inside pkg.ads to see if the parent to which the child refers can be found there.) Thanks, O. Kellogg