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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,263d6079ff6f1361,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!c13g2000cwb.googlegroups.com!not-for-mail From: "mferracini" Newsgroups: comp.lang.ada Subject: generic and visibility Date: 4 Nov 2004 07:23:15 -0800 Organization: http://groups.google.com Message-ID: <1099581795.057353.199160@c13g2000cwb.googlegroups.com> NNTP-Posting-Host: 213.215.153.30 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1099581799 5445 127.0.0.1 (4 Nov 2004 15:23:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 Nov 2004 15:23:19 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: c13g2000cwb.googlegroups.com; posting-host=213.215.153.30; posting-account=OjhBzA0AAAC7IWpsLrvIpzjmXdzmh93y Xref: g2news1.google.com comp.lang.ada:5990 Date: 2004-11-04T07:23:15-08:00 List-Id: 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