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: 103376,92a6dd552088ca30,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet 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: Constructor for a class with a task defined Date: Wed, 31 Aug 2011 17:31:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: Reply-To: comp.lang.ada@googlegroups.com NNTP-Posting-Host: 189.110.15.24 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1314837151 27872 127.0.0.1 (1 Sep 2011 00:32:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 1 Sep 2011 00:32:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=189.110.15.24; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 X-Google-Web-Client: true Xref: g2news1.google.com comp.lang.ada:20809 Date: 2011-08-31T17:31:01-07:00 List-Id: I'm trying to implement a Constructor method for a class which have a task type pointed to the class, so in spec: type Small_Class; task type My_Task_Type (This_Small_Class : access Small_Class); type Small_Class is tagged limited record My_Task : My_Task_Type (Small_Class'Access); end record; and in body: function Construct return access Small_Class is begin return new Small_Class'(My_Task => ???????); end Construct; So, how can I do it?