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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2948948ddf794344 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Stupid question Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1176414032.163717.31900@y80g2000hsf.googlegroups.com> <1176415338.362267.115580@l77g2000hsb.googlegroups.com> <1pyl2asiynhjs.117mopb54gcj7$.dlg@40tude.net> <1176478553.026938.254630@n59g2000hsh.googlegroups.com> <190oqb9t3eplx$.ffakhbeqreff$.dlg@40tude.net> Date: Sat, 14 Apr 2007 09:25:57 +0200 Message-ID: <1vjl71hygvfw6.1o69sq5iop87x$.dlg@40tude.net> NNTP-Posting-Date: 14 Apr 2007 09:25:03 CEST NNTP-Posting-Host: e4883231.newsspool3.arcor-online.net X-Trace: DXC=NFlKJ[JU_3bf1oJaJ0@dmgMcF=Q^Z^V3h4Fo<]lROoRaFl8W>\BH3Yb7Ec9Imkc`hoDNcfSJ;bb[eIRnRBaCd On Fri, 13 Apr 2007 18:39:52 -0500, Randy Brukardt wrote: >> So it is possible to say 'with A.B' in the context of a compilation >> unit if A is "only" a generic (as opposed to an instance)? Even in Ada >> 95? Is there any example for that somewhere? > > It's necessary to make children of generic packages work. Recall that a > child of a generic must be a generic. The original question included an > example. (Personally, I think generic children aren't worth the trouble, > both in the language definition and in implementation. YMMV.) Ooch. Generics are painful enough. Without generic children they were just unbearable. Passing 20+ generic instances through formal parameters is a nightmare. If Ada had constructs for composing and reusing declarative regions, one could probably drop children, but it does not. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de