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-Thread: 103376,487310d7e1471eac X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!out01b.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!feeder.news-service.com!feeder6.cambrium.nl!feed.tweaknews.nl!193.201.147.79.MISMATCH!transit4.hitnews.eu!feed.xsnews.nl!border-1.ams.xsnews.nl!217.145.39.3.MISMATCH!talisker.lacave.net!lacave.net!news.stack.nl!feeds.news.ox.ac.uk!news.ox.ac.uk!feed2.jnfs.ja.net!feed4.jnfs.ja.net!jnfs.ja.net!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: parent package referring to child Date: Wed, 10 Oct 2007 20:26:31 +0100 Organization: Pushface Message-ID: References: <1191997397.865251.322480@d55g2000hsg.googlegroups.com> <1192007262.7362.69.camel@kartoffel> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1192044391 16692 62.49.19.209 (10 Oct 2007 19:26:31 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 10 Oct 2007 19:26:31 +0000 (UTC) Cancel-Lock: sha1:yuIpF7m6MGnVJjfRsX/P985fd4w= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news2.google.com comp.lang.ada:2421 Date: 2007-10-10T20:26:31+01:00 List-Id: Georg Bauhaus writes: > You can replicate the type as a derived type in FOO and create > the Names package as a normal package: > > type Twin is new Names.Huge; > > Another possibility is to rearrange the package hierarchy so > that FOO can become a sibling of Names. Foo and Foo_Names perhaps. We use a code generator, the things it can't generate are by convention in Foo_Support. One possible problem is that the literals aren't directly visible in Foo without 'use Foo_Names'.