comp.lang.ada
 help / color / mirror / Atom feed
From: "Rego, P." <pvrego@gmail.com>
Subject: Constructor for a class with a task defined
Date: Wed, 31 Aug 2011 17:31:01 -0700 (PDT)
Date: 2011-08-31T17:31:01-07:00	[thread overview]
Message-ID: <dc23e007-fd67-41c4-a00b-1c137961b4a0@glegroupsg2000goo.googlegroups.com> (raw)

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?



             reply	other threads:[~2011-09-01  0:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-01  0:31 Rego, P. [this message]
2011-09-01  1:40 ` Constructor for a class with a task defined Adam Beneschan
2011-09-01  4:54   ` Jeffrey Carter
2011-09-01 10:13 ` Simon Wright
2011-09-03 15:18   ` Rego, P.
2011-09-03 22:11     ` Robert A Duff
2011-09-05  9:37       ` Georg Bauhaus
2011-09-08 10:22       ` Rego, P.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox