comp.lang.ada
 help / color / mirror / Atom feed
* Access discriminants in tasks (9X)
@ 1994-11-24 16:23 Ken Thomas
  1994-12-01 20:04 ` Bob Duff
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Thomas @ 1994-11-24 16:23 UTC (permalink / raw)


Can tasks being limited types have access discriminants. Barnes (4th edition)
says yes (p432) but GNAT rejects the following fragment

package Worker is


  type W is limited private;

private

  task type Job(W_PTR : access W);
  -- GNAT objects

  type W is limited record
     Data : Integer;
     J    : Job(W'ACCESS);
   end record;

end Worker;


Help on this area of Ada syntax would be helpful.


Ken Thomas
University of Southampton, UK
kst@uk.ac.soton.ecs



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

* Re: Access discriminants in tasks (9X)
  1994-11-24 16:23 Access discriminants in tasks (9X) Ken Thomas
@ 1994-12-01 20:04 ` Bob Duff
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Duff @ 1994-12-01 20:04 UTC (permalink / raw)


In article <3b2emu$19f@wynkyn.ecs.soton.ac.uk>,
Ken Thomas <kst@ecs.soton.ac.uk> wrote:
>Can tasks being limited types have access discriminants.

Yes.

- Bob
-- 
Bob Duff                                bobduff@inmet.com
Oak Tree Software, Inc.
Ada 9X Mapping/Revision Team (Intermetrics, Inc.)



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

end of thread, other threads:[~1994-12-01 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-11-24 16:23 Access discriminants in tasks (9X) Ken Thomas
1994-12-01 20:04 ` Bob Duff

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