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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3a435580b33a60dd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: help in task, what is wrong? Date: Sun, 24 Apr 2005 18:19:12 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1114347735.376048.213420@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: host81-154-188-69.range81-154.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com 1114366752 5647 81.154.188.69 (24 Apr 2005 18:19:12 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 24 Apr 2005 18:19:12 +0000 (UTC) In-Reply-To: <1114347735.376048.213420@o13g2000cwo.googlegroups.com> X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) Xref: g2news1.google.com comp.lang.ada:10670 Date: 2005-04-24T18:19:12+00:00 List-Id: mferracini wrote: > sorry for the italian source code: > > ---- > with Ada.Text_Io; > > procedure Interazione is --processo genitore > > > task type Generico is > entry Init; > entry Esegui; > end Generico; > > type Ptr_Generico is access Generico; > > task type Schedulatore is [snip] > schedulatore.Addtask(Task_X); give me this error: > invalid use of subtype mark. > > how i can pass the task pointer? thanks It isn't the parameter that's the problem. "Schedulartore" is a task _type_ - you haven't created an instance of the type yet. Cheers -- Martin