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, WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.33.162 with SMTP id s2mr295869obi.17.1413455775368; Thu, 16 Oct 2014 03:36:15 -0700 (PDT) X-Received: by 10.140.91.181 with SMTP id z50mr1342qgd.20.1413455775229; Thu, 16 Oct 2014 03:36:15 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news.glorb.com!h18no6470021igc.0!news-out.google.com!u5ni3qab.1!nntp.google.com!dc16no3235431qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 16 Oct 2014 03:36:15 -0700 (PDT) In-Reply-To: <1e3dumb4ql0xb$.1reo7fz5y3vyl.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.55.252.154; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.55.252.154 References: <10ir7anot1ujj$.kcl1b5ynppz8.dlg@40tude.net> <1e3dumb4ql0xb$.1reo7fz5y3vyl.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <58d11e86-8f29-4f49-ab56-ab282a59a560@googlegroups.com> Subject: Re: Generic Library Units? From: AdaMagica Injection-Date: Thu, 16 Oct 2014 10:36:15 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22522 Date: 2014-10-16T03:36:15-07:00 List-Id: Since there is no complete source, I can only guess. > generic > with package TK is new GuiGtk(<>); -- this is gui.ads:10 >-- with package TKSG is new GuiGtk.SimpleGad; -- try this instead: with package TKSG is new TK.SimpleGad; > package Gui is GuiGtk is a generic, which seems to have a generic subpackage or child SimpleGad. You first instantiate GuiGtk, instance is called TK. This implicitly creates the generic TK.SimpleGad (from GuiGtk.SimpleGad), which you can then instantiate as TKSG.