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,d1c2be706bbed0a5,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Recursive parameters in generics 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 Date: Mon, 23 Jul 2007 20:20:54 +0200 Message-ID: <1k85hjmq18rzl$.k999u7frmtye.dlg@40tude.net> NNTP-Posting-Date: 23 Jul 2007 20:20:37 CEST NNTP-Posting-Host: d0e2601c.newsspool1.arcor-online.net X-Trace: DXC=_kOH29]AT6OlU`@c^jLCbJic==]BZ:afN4Fo<]lROoRAFl8W>\BH3YB@d>KKY5RmSFDNcfSJ;bb[EIRnRBaCd Hi there, out of curiosity, recently experimenting with workarounds for generics, I invented a construct, which puzzles me. Is the following legal: generic S : String; package A is S_Of : String renames S; end A; ----------------------------------- with A; generic S : String; with package This_A is new A (S => S); package B is end B; ----------------------------------- with A; package My_A is new A (S => "whatever"); ----------------------------------- with My_A; with B; package My_B is new B (This_A => My_A, S => My_A.S_Of); ----------------------------------- One could think that My_B would take S_Of from an instance of A and then pass it back to A. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de