comp.lang.ada
 help / color / mirror / Atom feed
* Constructor for a class with a task defined
@ 2011-09-01  0:31 Rego, P.
  2011-09-01  1:40 ` Adam Beneschan
  2011-09-01 10:13 ` Simon Wright
  0 siblings, 2 replies; 8+ messages in thread
From: Rego, P. @ 2011-09-01  0:31 UTC (permalink / 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?



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-08 10:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01  0:31 Constructor for a class with a task defined Rego, P.
2011-09-01  1:40 ` 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.

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