comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Generic Library Units?
Date: Thu, 16 Oct 2014 03:36:15 -0700 (PDT)
Date: 2014-10-16T03:36:15-07:00	[thread overview]
Message-ID: <58d11e86-8f29-4f49-ab56-ab282a59a560@googlegroups.com> (raw)
In-Reply-To: <1e3dumb4ql0xb$.1reo7fz5y3vyl.dlg@40tude.net>

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.


  parent reply	other threads:[~2014-10-16 10:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12 14:38 Generic Library Units? hreba
2014-10-12 15:47 ` Dmitry A. Kazakov
2014-10-12 22:39   ` hreba
2014-10-13  7:45     ` Dmitry A. Kazakov
2014-10-15  0:29       ` hreba
2014-10-15  7:21         ` Dmitry A. Kazakov
2014-10-16  1:21           ` hreba
2014-10-16  7:04             ` Dmitry A. Kazakov
2014-10-16  7:54             ` Simon Wright
2014-10-17 12:46               ` hreba
2014-10-16 10:36           ` AdaMagica [this message]
2014-10-17 12:57             ` hreba
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox