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.7 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3cfaa627fc3366de,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Task origin track from a class Date: Mon, 11 Jul 2011 20:24:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 201.26.49.210 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1310441044 19905 127.0.0.1 (12 Jul 2011 03:24:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 12 Jul 2011 03:24:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=201.26.49.210; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 X-Google-Web-Client: true Xref: g2news1.google.com comp.lang.ada:20173 Date: 2011-07-11T20:24:04-07:00 List-Id: I have a class Def_Class which defines a record which is a task. Say: task type My_Task_Kind; type Def_Class is tagged limited record Some_Element : Integer; -- or other type anyway My_Task : My_Task_Kind; end record; and I want to access my class inside the task body, something like type body My_Task_Kind (Origin: Def_Class) is begin if Origin.Some_Element = 1 then (...) end if; end My_Task_Kind; So how can I do it? (I tried to use an entry type, but got problems with limited/non limited types, so asking for help!!)