comp.lang.ada
 help / color / mirror / Atom feed
From: kst@ecs.soton.ac.uk (Ken Thomas)
Subject: Access discriminants in tasks (9X)
Date: 24 Nov 1994 16:23:58 -0000
Date: 1994-11-24T16:23:58+00:00	[thread overview]
Message-ID: <3b2emu$19f@wynkyn.ecs.soton.ac.uk> (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



             reply	other threads:[~1994-11-24 16:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-24 16:23 Ken Thomas [this message]
1994-12-01 20:04 ` Access discriminants in tasks (9X) Bob Duff
replies disabled

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