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,22c22bbd068993f0,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: "e.coli" Newsgroups: comp.lang.ada Subject: Generic and visibility... Date: 10 Jun 2005 14:34:12 -0700 Organization: http://groups.google.com Message-ID: <1118439252.943218.290110@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 82.50.87.132 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1118439258 7795 127.0.0.1 (10 Jun 2005 21:34:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 10 Jun 2005 21:34:18 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=82.50.87.132; posting-account=OjhBzA0AAAC7IWpsLrvIpzjmXdzmh93y Xref: g2news1.google.com comp.lang.ada:11283 Date: 2005-06-10T14:34:12-07:00 List-Id: my program is structured like this: --bar.ads package Bar is generic with procedure Quuz; package Baz is task type Dummy is entry Run; end Dummy; type Ptr_Dummy is access Dummy; procedure Quz ( X : out Ptr_Dummy ); end Baz; end Bar; --bar.adb with Ada.Text_Io; package body Bar is T_Array : array (Integer range 1 .. 10) of Baz.Ptr_Dummy; --error package body Baz is task body Dummy is begin accept Run do Ada.Text_Io.Put_Line (Item => "Hello, Word!"); Quuz; --generic procedure end Run; end Dummy; procedure Quz ( X : out Ptr_Dummy ) is begin X := new Dummy; end Quz; end Baz; end Bar; why i can't acces to Baz.Ptr_Dummy? my deal is see the task pointer X outside Baz package. thanks