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 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!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Generic Library Units? Date: Thu, 16 Oct 2014 09:04:31 +0200 Organization: cbb software GmbH Message-ID: <6ge9dqlz3ifx$.7ny8fi1jsnf4.dlg@40tude.net> References: <10ir7anot1ujj$.kcl1b5ynppz8.dlg@40tude.net> <1e3dumb4ql0xb$.1reo7fz5y3vyl.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: ZB2Fb2q1fa4xpMpNKFqV6Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:22518 Date: 2014-10-16T09:04:31+02:00 List-Id: On Wed, 15 Oct 2014 22:21:30 -0300, hreba wrote: > Basically I only need type and subprogram parameters for my generic > package Gui (and Gui.SimpleGad) package. > As I have dozens of subprogram parameters, I packed them (together with > the types) into a package parameter GuiGtk and it worked. It didn't work > anymore when I outsourced part of GuiGtk into GuiGtk.SimpleGad. > > From what you say I understand that there is no cure, so I will stick > to a GuiGtk without a child package. Why? Of course, it works. I don't understand your design, but if you put anything in the package GuiGtk, instantiate it in Gui (as TK), then a child of Gui (Gui.SmpleGad) must see that instance (TK) and you can use anything declared in the visible part of Gui as TK.*. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de