comp.lang.ada
 help / color / mirror / Atom feed
* Equivalent to C++'s 'this' for tasks?
@ 1997-05-21  0:00 Dale Stanbrough
  1997-05-22  0:00 ` Robert I. Eachus
  1997-05-22  0:00 ` Dale Stanbrough
  0 siblings, 2 replies; 4+ messages in thread
From: Dale Stanbrough @ 1997-05-21  0:00 UTC (permalink / raw)



If I wanted to create a task...

	task type a;
	task type a_ptr is access all task;
	
	task type a;
	
would it be possible in the body of a to construct/obtain
a pointer to the task?

Something like...

	task body a is
	   me : a_ptr;
	begin
	   me := ???'{Unchecked_}Access;
	
	end;

You could then pass this information around and let other
parts of the program query this object as to its state, or
would I have to allocate the object dynamically and hand it
the access value as part of an initialisation entry?


Dale




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

end of thread, other threads:[~1997-05-23  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-21  0:00 Equivalent to C++'s 'this' for tasks? Dale Stanbrough
1997-05-22  0:00 ` Robert I. Eachus
1997-05-22  0:00 ` Dale Stanbrough
1997-05-23  0:00   ` Robert A Duff

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