comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: generic and visibility
Date: Thu, 4 Nov 2004 18:59:21 +0000 (UTC)
Date: 2004-11-04T18:59:21+00:00	[thread overview]
Message-ID: <cmdu69$m48$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: 1099581795.057353.199160@c13g2000cwb.googlegroups.com

mferracini <maurizio.ferracini@gmail.com> wrote:
 
 [...]
 
: package Fake_App is new Manage_Task.Det_Task_M_Pack
: (
: Id_task => 1,
: Init_Job => Applicazione.Init,
: Job => Applicazione.Job);

 [...]
 

: job in not a visible entry of fake_app
: 
: how i can do?

The sources are a bit incomplete, so I tried guessing (why is
there `Id_task' when the formal parameter is really `Id', etc.?)
`Job' is the name of a formal parameter of `Manage.Det' (where does
`_Task_M_Pack' come from?)  The subprograms that can be visible from
the outside of an instance of Manage.Det are those in the package Det,
that is, `Start'. It seems you want to use `Applicazione.Job'
as a generic parameter, instantiatin Manage.Det. This will get you
an instance, Fake_App, that has one visible subprogram, `Start'.
The `Job' subprogram is (and remains) visible via `Applicazione'.


-- Georg



  reply	other threads:[~2004-11-04 18:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-04 15:23 generic and visibility mferracini
2004-11-04 18:59 ` Georg Bauhaus [this message]
2004-11-05  3:39 ` John Woodruff
  -- strict thread matches above, loose matches on Subject: below --
2005-06-10 21:34 Generic " e.coli
2005-06-11  1:18 ` Larry Hazel
2005-06-11  4:44 ` Preben Randhol
replies disabled

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