comp.lang.ada
 help / color / mirror / Atom feed
* Task origin track from a class
@ 2011-07-12  3:24 Rego, P.
  2011-07-12  5:57 ` Simon Wright
  2011-07-12  7:41 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 12+ messages in thread
From: Rego, P. @ 2011-07-12  3:24 UTC (permalink / raw)


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!!)



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

end of thread, other threads:[~2011-07-13 17:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-12  3:24 Task origin track from a class Rego, P.
2011-07-12  5:57 ` Simon Wright
2011-07-12  7:41 ` Dmitry A. Kazakov
2011-07-12 10:29   ` Simon Wright
2011-07-12 10:31     ` Simon Wright
2011-07-13  0:36       ` Shark8
2011-07-13  2:57         ` Rego, P.
2011-07-13  7:41         ` Dmitry A. Kazakov
2011-07-13  8:43           ` Georg Bauhaus
2011-07-13 11:59             ` Dmitry A. Kazakov
2011-07-13 16:31           ` Shark8
2011-07-13 17:22             ` Dmitry A. Kazakov

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