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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,487310d7e1471eac,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail From: eliben Newsgroups: comp.lang.ada Subject: parent package referring to child Date: Tue, 09 Oct 2007 23:23:17 -0700 Organization: http://groups.google.com Message-ID: <1191997397.865251.322480@d55g2000hsg.googlegroups.com> NNTP-Posting-Host: 194.90.39.105 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-8-i" X-Trace: posting.google.com 1191997398 13284 127.0.0.1 (10 Oct 2007 06:23:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 10 Oct 2007 06:23:18 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 RFINTISAPROXY01 Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=194.90.39.105; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2399 Date: 2007-10-09T23:23:17-07:00 List-Id: Hello, I have a package FOO that encapsulates a large part of the system. Now I need to add to it a public type (that should be visible by external code) with a lot of enumerated names (hundreds). I don't want to fill the spec of FOO with this huge type, so I thought it would be a good idea to create a subpackage: FOO.Names, and place the type there. However, declarations of subprograms in the spec of FOO must refer to the names from FOO.Names, and Ada 95 won't let me do that because it's parent referring to child. Is there any way to overcome this problem ? Perhaps a different design that suits the requirement and doesn't go against the Ada standard ? Thanks in advance.