From: "mferracini" <maurizio.ferracini@gmail.com>
Subject: generic and visibility
Date: 4 Nov 2004 07:23:15 -0800
Date: 2004-11-04T07:23:15-08:00 [thread overview]
Message-ID: <1099581795.057353.199160@c13g2000cwb.googlegroups.com> (raw)
i'm new on ADA, and i hav some problem
with generic.
this is an exemple
------------------------------------
package Manage is
generic
Id : integer;
with procedure Init;
with procedure Job;
package Det is
procedure Start(
Status : out Integer );
end Det;
end Manage;
----------------------------------------
with Ada.Text_Io;
with Ada.Task_Identification;
package body Applicazione is
I : Integer := 0;
procedure Init is
begin
I:=1;
end Init;
procedure Job is
begin
Ada.Text_Io.Put(Item => "> mi sbatto! ");
I:=I+1;
Ada.Text_Io.Put(Item => Integer'Image (I));
Ada.Text_Io.New_Line;
end Job;
end Applicazione;
-----------------------------------------
with Manage;
with Applicazione;
package Fake_App is new Manage_Task.Det_Task_M_Pack
(
Id_task => 1,
Init_Job => Applicazione.Init,
Job => Applicazione.Job);
---------------
with Fake_App;
procedure Test is
begin
Fake_app.job;
end Test;
---------------------------------------------------------------------------------
job in not a visible entry of fake_app
how i can do?
thanks
next reply other threads:[~2004-11-04 15:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-04 15:23 mferracini [this message]
2004-11-04 18:59 ` generic and visibility Georg Bauhaus
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